Open pengyangjin opened 5 months ago
I have the same problem, I think because I am using an old 64-bit p12 file that needs 128-bit encryption, but I use the file for an application and I cannot replace it.
I don't think the gradle build failure is related to any p12/signing things .. that just looks like it may mean there is a conflict in versions - %temp%\209d40fc-c571-4b8d-9a36-29f66ba377d4\androidx.appcompat\build.gradle
sounds like this comes from an ANE I think (otherwise I'd expect it to be in an 'app' folder), and it has a version line androidx.appcompat Invalid revision: 30.0.3-2
. My guess would be the -2
may be a problem, but it might be something that's accepted in later build tools versions or similar.
Best approach for this kind of thing would be to generate the "android-studio" project output, and then open this within Android Studio itself. It should then be able to guide you through the process to update the SDK/build tools and gradle/plug-in versions to try to build it with the latest set-up..
thanks
use the AIR 51.0.1.2 ( 31-May-2024 ) for package apk file.The following error has occurred.
[java] NOTE: Multiple Android build-tools folders exist, choosing the latest version (30.0.3) for packaging [java] unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: [java] FAILURE: Build failed with an exception. [java] [java] Where: [java] Build file 'C:\Users\YTTX-DBJ1\AppData\Local\Temp\209d40fc-c571-4b8d-9a36-29f66ba377d4\androidx.appcompat\build.gradle' line: 5 [java] [java] What went wrong: [java] A problem occurred evaluating project ':androidx.appcompat'. [java] > Invalid revision: 30.0.3-2 [java] [java] Try: [java] > Run with --stacktrace option to get the stack trace. [java] > Run with --info or --debug option to get more log output. [java] > Run with --scan to get full insights. [java] [java] Get more help at https://help.gradle.org/ [java] [java] BUILD FAILED in 13s [java] [java] java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: [java] FAILURE: Build failed with an exception. [java] [java] Where: [java] Build file 'C:\Users\YTTX-DBJ1\AppData\Local\Temp\209d40fc-c571-4b8d-9a36-29f66ba377d4\androidx.appcompat\build.gradle' line: 5 [java] [java] What went wrong: [java] A problem occurred evaluating project ':androidx.appcompat'. [java] > Invalid revision: 30.0.3-2 [java] [java] Try: [java] > Run with --stacktrace option to get the stack trace. [java] > Run with --info or --debug option to get more log output. [java] > Run with --scan to get full insights. [java] [java] Get more help at https://help.gradle.org/ [java] [java] BUILD FAILED in 13s [java] [java] at com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java) [java] at com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java) [java] at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java) [java] at com.adobe.air.apk.AABPackager.createPackage(AABPackager.java) [java] at com.adobe.air.ADT.parseArgsAndGo(ADT.java) [java] at com.adobe.air.ADT.run(ADT.java) [java] at com.adobe.air.ADT.main(ADT.java)