Can't Generate Apks Anymore? Android Studio 3.0.1

Discussion in 'Technical Discussion' started by ThinkSimple, Jan 4, 2018.

  1. ThinkSimple

    ThinkSimple Boxer

    Joined:
    Jun 29, 2017
    Messages:
    29
    Likes Received:
    10
    Hello, since the release of Buildbox 2.3 I'm not able to generate Apks in Android Studio anymore. I had no problems before Buildbox 2.3 with generating APKs.
    I always get this error message:

    Error: The number of method references in a .dex file cannot exceed 64K.
    Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

    My Android Studio Version is 3.0.1 and Buildbox 2.3.1.0.
    PS: I also did exactly every thing Zach showed in this video



    I hope somebody can help me...
    Thanks
     
    KidApp likes this.
  2. Hardwareguru

    Hardwareguru Boxer

    Joined:
    Feb 26, 2017
    Messages:
    4
    Likes Received:
    1
    Well, you posted your solution - it's all written in your link:

    Follow the instrcutions (1,2...) in
    Configure your app for multidex
    ....
    Modify your build.gradle. Add the following in the

    defaultConfig
    multiDexEnabled true

    etc.
     
  3. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    the same to me. With all my projects!
    The same errors "a .dex file cannot exceed 64K."

    I need an urgent fix!!!!

    URGENT!!!!!
    @Andy
    @ZackGriset
     
  4. Lamora

    Lamora Avid Boxer

    Joined:
    Dec 8, 2016
    Messages:
    282
    Likes Received:
    140
    Also change minSdkVersion to 21
     

    Attached Files:

    Christoph, ThinkSimple and KidApp like this.
  5. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Lamora, thank you so much for your instruction - it helped to pass that error.
    But, unfortunately, there are new errors appeared.
    upload_2018-1-5_18-43-53.png
     
  6. ThinkSimple

    ThinkSimple Boxer

    Joined:
    Jun 29, 2017
    Messages:
    29
    Likes Received:
    10
    Thanks!You saved my life ;) I already tried pasting in "multiDexEnabled true" but it didn't work but now with changing minSdkVersion to 21 it is working!!!
     
  7. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    How did you change minSdkVersion to 21 ?
     
  8. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Is it here?
     

    Attached Files:

    ThinkSimple likes this.
  9. ThinkSimple

    ThinkSimple Boxer

    Joined:
    Jun 29, 2017
    Messages:
    29
    Likes Received:
    10
    yes that one ;) I took like 8 minutes to generate the apk but it works. And I also just now installed the apk on my android phone with no errors!
     
  10. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Great! Thanks!
    No more errors!!!!!
     
    Last edited: Jan 7, 2018
  11. Lamora

    Lamora Avid Boxer

    Joined:
    Dec 8, 2016
    Messages:
    282
    Likes Received:
    140
    Great im glad i can help you :)
     
    ThinkSimple and KidApp like this.
  12. Wapps1

    Wapps1 Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    144
    Likes Received:
    68
    Hi,

    When i change minSdkVersion to 21 (like in this articel) the apk get signed without problems, but this apk doesn't work for older device.

    And when i change minSdkVersion to 14, i get a lot of errors.

    Does someone know how to change it, so that the apk is compatible also to older android devices? (because when i make a update of a existing game, about 30% of the user's can't update the game)

    Thanks for your help
     
  13. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    I have the same issue. 80% of users cannot download my app!!!!
    Please, help!
     
  14. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Does anyone know, how to solve it and let old devices to download our apps?
    Really really urgent!
    Please, HELP!
     
  15. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Anyone?
     
  16. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Hello?
     
  17. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,545
    There are some fixes coming related to building APK and for older devices in a few days.
     
    Qdeveloper and AndyG like this.
  18. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    Ok, thanks!
     

Share This Page