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. 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...
     
  3. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,178
    Likes Received:
    531
    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.
     
  4. 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.
     
  5. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,178
    Likes Received:
    531
    Hello, your problem is Java.
    You have uninstall ALL Java version, and install ONLY Java JDK 1.7
     
  6. 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.
     
  7. ilie93

    ilie93 Boxer

    Joined:
    Jan 20, 2020
    Messages:
    4
    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:

  8. Jemoq

    Jemoq Boxer

    Joined:
    Jun 2, 2020
    Messages:
    1
    Likes Received:
    0
    Hello, your problem is Java.
    You have uninstall ALL Java version, and install ONLY Java JDK 1.7
     
  9. Hue Buildbox

    Hue Buildbox Moderator Staff Member

    Joined:
    May 11, 2017
    Messages:
    339
    Likes Received:
    141
    You should be fine if you install the latest version of Android Studio. PLEASE DO NOT use Eclipse. It's extremely outdated. The examples above were posted in 2017.
    Android Studio ver. 4.0.1: https://developer.android.com/studio/
     

Share This Page