Android Studio - Creating An Apk File [need Help]

Discussion in 'Buildbox General Discussion' started by ThePurpleBeam, May 2, 2017.

  1. ThePurpleBeam

    ThePurpleBeam Boxer

    Joined:
    Apr 30, 2017
    Messages:
    13
    Likes Received:
    2
    Hey guys!

    I am a new guy here and I finally got a permission to post (thanks a lot, mods!).

    So, I have almost done my first game in the BuildBox (need to add some sounds, small fixes, ect.), but the problem is that I am an absolute zero with the Android Studio or Eclipse (and coding stuff).

    I thought that after making your game in the BB, the last steps are easy, but well... I don't know if it's only me, but it's super hard!

    For now, I just need to build a working apk file and test it on my phone.

    Long story short - whenever I try to build an apk, I just keep getting various errors and the "BUILD FAILED" message. I have installed almost everything from the SDK manager and yet I have no luck.

    Recent error:
    Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
    > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class

    I would appreciate any help or suggestions!
    Thanks a lot!
     
  2. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,147
    Likes Received:
    510
    Hello, welcome to the Buildbox forum, please see several tutorials before asking questions.

    https://www.buildbox.com/tutorials/
    https://www.buildbox.com/guides/

    What is your version of Java, Operating System, Buildbox?
    Does it happen to any game?

    Use only Eclipse and Java JDK 1.7

    Follow the tutorials,
    http://buildbox.com/forum/index.php?threads/are-there-any-bb-code-helpers.482/#post-2893
    http://buildbox.com/forum/index.php...pse-java-and-android-sdk-video-tutorial.2794/

    Install Android SDK with Eclipse.

    If you continue to have problems, PM to connect to your PC via Teamviewer.
     
  3. ThePurpleBeam

    ThePurpleBeam Boxer

    Joined:
    Apr 30, 2017
    Messages:
    13
    Likes Received:
    2
    Thanks for your reply! I use the latest versions and Windows 10. I followed your video and managed to create an apk file.

    Now, when I try to install it on my phone - I just get an error: "The app could not be installed". What could be wrong? That's becoming a real nightmare...
     
  4. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,147
    Likes Received:
    510
    Hello, please:
    Tell me which version of Java you have installed.
    Tell me if you follow the video step by step, selecting the Java version 1.7 in the project.

    If you continue to have problems, PM to connect to your PC via Teamviewer.
     
  5. ThePurpleBeam

    ThePurpleBeam Boxer

    Joined:
    Apr 30, 2017
    Messages:
    13
    Likes Received:
    2
    I use the 1.8 version of Java (because 1.7 is not available anymore). I followed every step from your video, created my apk without problems, but I can't install it. I just keep getting that "Unable to install" message. I will send you a PM in a moment.
     
  6. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,147
    Likes Received:
    510
    Hello, your problem is Java.
    You have uninstall ALL Java version, and install ONLY Java JDK 1.7
     
  7. cloud8111

    cloud8111 Boxer

    Joined:
    Jan 6, 2020
    Messages:
    2
    Likes Received:
    0
    I am using JDK 1.9, still facing "Unable to install" message, I stuck here.
     
  8. ilie93

    ilie93 Boxer

    Joined:
    Jan 20, 2020
    Messages:
    2
    Likes Received:
    0
    Hi Jcalle


    open the game preview mode and the window is empty
    Eu nu înțeleg de ce, vă rog să mă ajutați
     

    Attached Files:

Share This Page