-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported usage of main-dex list. The usage of main-dex-list content for the compilation of non-DEX inputs is deprecated. #3657
Comments
That You may be able to tell more from the adt.log file (or simpler - use the AIR SDK Manager and the 'Troubleshooting' tab) but I would suggest trying to use the newer Gradle-based build mechanism, which should kick in automatically if you set up the Android platform SDK and have an app descriptor namespace of 33+.. thanks |
I downloaded AIR SDK from here: https://airsdk.harman.com/download And I have simply been using the command line. Where may I find the AIR SDK Manager and the adt.log file? |
Have a look on the airsdk site: https://airsdk.dev |
Here is the output shown in the "Troubleshooting" tab of the AIR SDK Manager:
I am not sure how to use the newer Gradle-based build mechanism. The steps that I am taking for this are the following:
I have Android Studio 2024.2.2 installed, with the Android 15 SDK and Gradle 8.10.2. I want the apk to work in this Android version. Then I get the output:
Any help would be appreciated. |
Okay so you've managed to change it so it's building via Gradle, which is great .. but it looks like you have the Android 35 platform installed; we are adjusting from our default to use the Android Gradle Plug-in 8.1.1 but I think we're likely still using an older Gradle version, which isn't compatible with Java-21. A few options maybe - I don't know that it would help but potentially using Java 17 may help? - but otherwise, assuming you don't want to downgrade your environment's Android platform installation, it may be worth adding a flag to your application descriptor file to ensure you use a later Gradle version too. For Android-35, you could try having:
or 8.7 + 8.9, or other combinations from https://developer.android.com/build/releases/gradle-plugin#updating-gradle Thanks |
Using Java 17 has allowed the apk to compile. However I cannot install it in Bluestacks, whereas the legacy build works. Attempting to install it in the Android emulator gives the following error:
|
From your command line, it's leaving the APK with the default architecture/ABI ( You could try adding the Plus - it might also be worth opening the APK file with a zip editor and making sure it looks okay, with an thanks |
Strange error when compiling. It happens on one of my laptops only, on the other it works well. The files are identical in both laptops and both have the same Java version and Adobe AIR SDK version.
The text was updated successfully, but these errors were encountered: