airsdk / apm

AIR Package Manager
https://repository.airsdk.dev/
MIT License
61 stars 10 forks source link

Android crash after updating app descriptor and ANEs #204

Closed apofis1969 closed 5 months ago

apofis1969 commented 5 months ago

I updated today the ANes and the app descriptor file of my app. The app crashes completely when opening, because I think that there is a bug in the manifest. Using the recent manifest no error appears. Attached I add the new myApp-app.xml file and the error log. Hopefully you can tell me what is wrong.

Using APM Version: 1.6.4 AIR SDK: 50.2.5.1

myApp-app.txt errorlog.txt

marchbold commented 5 months ago

Can you post your project and project-lock files?

apofis1969 commented 5 months ago

Hi @marchbold please see attached the logfile.

logfiles.txt

marchbold commented 5 months ago

Hi, Thanks for that, but can you post your apm project and project-lock files?

apofis1969 commented 5 months ago

Hi, sorry. Understood wrong. Here they are

project-apm.zip

marchbold commented 5 months ago

I dont see any issues with your project files. Did you regenerate your app descriptor after updating to ensure your manifest is correct?

apm generate app-descriptor
apofis1969 commented 5 months ago

Hi, yes I did generate a new myApp-app.xml file. The recent I have works. The new crashes the app completely. I did: apm generate app-descriptor MyApp-app.xml

marchbold commented 5 months ago

Can you update to the release we have just released this week and let me know if you are still getting this error?

apofis1969 commented 5 months ago

Do you mean the apm? It is still 1.6.4 from July 2023

marchbold commented 5 months ago

No I mean update the packages.

apofis1969 commented 5 months ago

Hi, I updated the packages but now I get this error while building the aab file using Sonoma 14.5 and the new ANEs. Using the ANEs of the recent version this problem does not appear.

`unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: ERROR:D8: com.android.tools.r8.kotlin.H ERROR:D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

BUILD FAILED in 33s

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: ERROR:D8: com.android.tools.r8.kotlin.H ERROR:D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

BUILD FAILED in 33s

at com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java)
at com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java)
at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java)
at com.adobe.air.apk.AABPackager.createPackage(AABPackager.java)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java)
at com.adobe.air.ADT.run(ADT.java)
at com.adobe.air.ADT.main(ADT.java)`
marchbold commented 5 months ago

Try setting your minimum sdk version to 24

https://github.com/airsdk/Adobe-Runtime-Support/issues/3236

If you are using apm

apm generate config android

edit the file at config/android/AndroidManifest.xml and set the minimum sdk version to be 24, then regenerate your app descriptor.

apofis1969 commented 5 months ago

Thanks. I forgot to change the minimum version. All working.