airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
201 stars 11 forks source link

build Android App Bundle failed if UncompressedExtensions being uncommented - Unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed #1473

Open jimmymjing opened 2 years ago

jimmymjing commented 2 years ago

I'm trying to build aab but failed with the following error log: This happens if UncompressedExtensions=emd,tfl,tflite,pb has been uncommented. Otherwise it gets built with no errors.

*** ADT Logging at 2021/12/18 12:47:50 ***
Called by: /Users/mingjing/Development/Biofanta/Bf_15/Bf/AIRSDK_33.1.1.713/lib/adt.jar
ADT 33.1.1.713 called with: -package -target apk-captive-runtime -arch armv8 -storetype PKCS12 -keystore /Users/mingjing/Development/Biofanta/certi/inUse/voxAndroidCerti.p12 -storepass xxxxxx /Users/mingjing/Development/Biofanta/Bf_15/Bf/bin-Android/Bf_Android.apk /Users/mingjing/Development/Biofanta/Bf_15/Bf/bin-Android/Bf-app.xml -extdir /Users/mingjing/Development/Biofanta/DigitalStrewberryAnes -extdir /Users/mingjing/Development/Biofanta/Biofanta_dependency -extdir /Users/mingjing/Development/Biofanta/Bf_15/Bf/ane -C /Users/mingjing/Development/Biofanta/Bf_15/Bf/bin-Android Bf_Android.swf -C /Users/mingjing/Development/Biofanta/Bf_15/Bf/assets . -C /Users/mingjing/Development/Biofanta/Bf_15/Bf/src/res .
Overriding request for apk-captive-runtime, instead generating Android App Bundle
Ignoring architecture request for AAB target
Version in APK = 33.1.1.698, version of ADT = 33.1.1.713
Version in APK = 33.1.1.698, version of ADT = 33.1.1.713
Version in APK = 33.1.1.698, version of ADT = 33.1.1.713
Version in APK = 33.1.1.698, version of ADT = 33.1.1.713
Gradle build where ADT is using JRE version 11.0.13
but where Gradle will be using the JDK from /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java
Gradle build command:  /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java -Xmx2048m -Dorg.gradle.appname=gradlew -Dorg.gradle.jvmargs=-Xmx2048m -Duser.dir="/var/folders/5_/k71cm__90pg8x7m3f9sm7c0w0000gn/T/c2824630-a4b8-4056-9acb-f90ee9291135" -cp "/Users/mingjing/Development/Biofanta/Bf_15/Bf/AIRSDK_33.1.1.713/lib/android/bin/gradle-wrapper.jar":"/Users/mingjing/Development/Biofanta/Bf_15/Bf/AIRSDK_33.1.1.713/lib/android/bin/gradle-cli.jar" org.gradle.wrapper.GradleWrapperMain :app:bundleRelease
..java.base/java.lang.Thread.getStackTrace(Thread.java:1602)
..com.adobe.air.DebugFile.printStack(DebugFile.java)
..com.adobe.air.ADTException.<init>(ADTException.java)
..com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java)
..com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java)
..com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java)
..com.adobe.air.apk.AABPackager.createPackage(AABPackager.java)
..com.adobe.air.ADT.parseArgsAndGo(ADT.java)
..com.adobe.air.ADT.run(ADT.java)
..com.adobe.air.ADT.main(ADT.java)
Stack trace:
Unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: 
FAILURE: Build failed with an exception.

* Where:
Build file '/private/var/folders/5_/k71cm__90pg8x7m3f9sm7c0w0000gn/T/c2824630-a4b8-4056-9acb-f90ee9291135/app/build.gradle' line: 2

* What went wrong:
A problem occurred evaluating project ':app'.
> No signature of method: build_6gywvi1209xnzqydq6jy1oe1o.android() is applicable for argument types: (build_6gywvi1209xnzqydq6jy1oe1o$_run_closure1) values: [build_6gywvi1209xnzqydq6jy1oe1o$_run_closure1@2c24a693]

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
ajwfrost commented 2 years ago

Thanks -> will check on this and hopefully get a fix asap

walddada commented 2 years ago

I have this problem when I execute this command line

adt -package -target apk-captive-runtime -storetype pkcs12 -keystore gamingtest.p12 gametest.apk game-app.xml game.swf icons

NOTE: Multiple Android build-tools folders exist, choosing the latest version (32.0.0) for packaging
unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
   > Android resource linking failed
     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:96: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:100: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\packaged_manifests\release\armeabi-v7a\AndroidManifest.xml:96: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\packaged_manifests\release\armeabi-v7a\AndroidManifest.xml:100: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 30s

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
   > Android resource linking failed
     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:96: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:100: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\packaged_manifests\release\armeabi-v7a\AndroidManifest.xml:96: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

     ERROR:D:\2\AndroidStudioProject\app\build\intermediates\packaged_manifests\release\armeabi-v7a\AndroidManifest.xml:100: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 30s

        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)`
ajwfrost commented 2 years ago

@walddada I think your issue above would belong in a new issue rather than being about uncompressed extensions...?

But in case helps:

AndroidManifest.xml:100: AAPT: error: resource integer/google_play_services_version (aka air.com.testgame.gamestest:integer/google_play_services_version) not found.

I suspect it's related to the way you would need to define this version resource variable, can you review the below web page and see if that helps? Or any documentation about how to include the Google Play Services ANE? https://airsdk.dev/docs/tutorials/platform/android/custom-resources

thanks

walddada commented 2 years ago

I solve my problem sure but You did not answer my question about a APK file 64bit Which I published via the new SDK version 33.1.1.743 and 33.1.1.713 Which does not work on emulator

ajwfrost commented 2 years ago

@walddada not sure I'd seen a question about 64-bit APK not working on the emulator? But if you're using the emulator e.g. from Android Studio, please ensure you're publishing the right architecture APK file. e.g. x64 version is most likely required, rather than armv8 - see the "CPU/ABI" column of the "Your Virtual Devices" table in the Android Virtual Device Manager...

This original issue (bundle failure with UncompressedExtensions values) was fixed in 33.1.1.731 so it would be good to close this down; if there are any other open issues you've got, please raise a new topic.

thanks thanks

walddada commented 2 years ago

all are good with sdk 33.1.1.460 all apk files 64 bit are working on emulator fine

but with 33.1.1.713 aren't working

raresn commented 2 years ago

Hey @ajwfrost - is this related? or should i open another issue?

NOTE: Multiple Android build-tools folders exist, choosing the latest version (32.0.0) for packaging unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

FAILURE: Build failed with an exception.

BUILD FAILED in 14s

ajwfrost commented 2 years ago

Hi That's a strange one, the actual error is:

A failure occurred while executing com.android.build.gradle.internal.res.ParseLibraryResourcesTask$ParseResourcesRunnable
Failed to parse XML resource file '...\androidx.appcompat\build\intermediates\packaged_res\release\values\values.xml'

which is very odd! I'm wondering whether there are some backwards compatibility issues coming in here, if you have build tools 32, maybe we should be trying to limit what it uses (it seems like there's a problem with one version of Gradle, or the Android Gradle Plug-in, using this appcompat library's resources....)

This is a separate issue from the one here (failure if uncompressedextensions is uncommented) so it may be worth creating it as a separate issue, but we'll check with some of the updated tools as well to see if we can get a combination of things that lead to this sort of failure.

thanks

raresn commented 2 years ago

Sure - let me know if i should do anything to help. Thank you.

ajwfrost commented 2 years ago

Hi @raresn - so with a quick check with later version of build tools and of Android Studio etc, we're still not able to reproduce this problem. Something may be up either in the environment, or in the generated project structure...

Are you able to reproduce this with a simple application, maybe with the androidx.appcompat ANE but not much else (i.e. with no code that you'd want to stay secret) and if so, could you please send it over to us?

If you set your configuration file (AIR SDK "lib/adt.cfg") so that it has "KeepAndroidStudioOutput=true" uncommented, and then build it, you should get an "AndroidStudioProject" folder that you can zip up and upload to the below link: https://transfer.harman.com/requests/BLldjK65u3mOKlzlpcvzn7

thanks

Adrian-S commented 2 years ago

@ajwfrost I created an empty project with just a swf that as a stop() code and the ane you mentioned. We got new errors. @raresn uploaded the whole project to the link indicated. With the ane it doesn't compile, without the ane it compiled. Inside Android Studio, under SDK tools, the Android SDK platofrm-tools has version 33.0.0 (not sure if it means anything) Right now, we can't publish a new release to our app, I am willing to help however i can, even if someone from your team needs to do remote debugging.

ajwfrost commented 2 years ago

Hi @Adrian-S @raresn

So the error you're getting at the moment is an interesting one - I do reproduce that here, it's due to an alpha value which is set up under a namespace "http://schemas.android.com/apk/res-auto" for pre-v21 builds and "http://schemas.android.com/apk/res/android" for v23+.

When we update the namespace to use the normal one, it then builds... (it fails if we omit it as well).

The weird thing is, it's working for me when I build our test case even with the invalid namespace...

So I wonder if this is something that's changed within the androidx system that needs to also then be updated in the ANE... as I've noticed that I'm using 1.2.0 of the ANE and you're using 1.4.1. The only differences I could see in the gradle build files were in the dependencies:

Yours Mine
implementation "androidx.multidex:multidex:2.0.1" implementation "androidx.multidex:multidex:2.0.1"
implementation files('libs/AppEntry.jar') implementation files('libs/AppEntry.jar')
implementation files('libs/runtimeClasses.jar') implementation files('libs/runtimeClasses.jar')
implementation files('libs/FlashRuntimeExtensions.jar') implementation files('libs/FlashRuntimeExtensions.jar')
implementation files('libs/androidx.appcompat.jar') implementation files('libs/androidx.appcompat.jar')
implementation files('libs/appcompat-1.4.1.jar') implementation files('libs/appcompat-1.2.0.jar')
implementation files('libs/appcompat-resources-1.4.1.jar') implementation files('libs/appcompat-resources-1.2.0.jar')
implementation project(":androidx.appcompat") implementation project(":androidx.appcompat")
implementation project(":androidx.appcompat.resources") implementation project(":androidx.appcompat.resources")
implementation project(":com.distriqt.extension.androidx.appcompat")

@marchbold are you aware of issues with the 'alpha' value? e.g. in color/abc_btn_colored_borderless_text_material.xml we have app:alpha="?android:attr/disabledAlpha" which fails but if we change it to android:alpha="?android:attr/disabledAlpha" then it works...?

thanks

marchbold commented 2 years ago

Do you have the latest androidx.core included? I believe that error is caused by missing that extension.

raresn commented 2 years ago

@marchbold - we got it directly from your website yesterday.

marchbold commented 2 years ago

Can you post the complete error log and the extension list you are using.

Adrian-S commented 2 years ago

@marchbold

Manifest is copy paste from the add extension guide. But had to comment meta:

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

This gave error:

aapt2 tool failed in linking:C:\Users\Adrian\AppData\Local\Temp\a81ecd11-b2f2-4a99-8f29-d4aaf5f42ba3\AndroidManifest.xml:132: error: resource xml/distriqt_pushnotifications_paths (aka air.ro.fxstudio.agenda:xml/distriqt_pushnotifications_paths) not found.
error: failed processing manifest.

We also removed FirebaseInitProvider as instructed here for manual configuration:

<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:authorities="APPLICATION_PACKAGE.firebaseinitprovider"
android:exported="false"
android:initOrder="100" />

All this leaves us with this error:

NOTE: Multiple SDKs exist, chosing version 32.0.0 for packaging
aapt2 tool failed in linking:C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_btn_colored_borderless_text_material.xml:20: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_btn_colored_text_material.xml:20: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_btn_checkable.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_default.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_edittext.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_seek_thumb.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_spinner.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_switch_track.xml:19: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_switch_track.xml:20: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
C:\Users\Adrian\AppData\Local\Temp\d40f472b-1650-4f00-887a-8e7262c3c257\appcompat-1.4.1-res\color\abc_tint_switch_track.xml:21: error: attribute alpha (aka air.ro.fxstudio.agenda:alpha) not found.
error: failed linking file resources.

Extensions: com.distriqt.PushNotifications // com.distriqt.Application // com.distriqt.Contacts com.distriqt.Core // com.distriqt.IDFA

Dependencies: androidx.appcompat androidx.browser androidx.cardview androidx.constraintlayout androidx.exifinterface androidx.vectordrawable com.android.installreferrer com.bumptech.glide com.google.android.datatransport com.google.code.gson com.google.dagger com.google.guava com.google.protobuflite io.grpc io.reactivex

I have recently noticed multiple extensions we didn't add because we didn't read the documentation fully:

com.distriqt.playservices.Base
<extensionID>com.distriqt.playservices.CloudMessaging</extensionID>
<extensionID>com.google.firebase.core</extensionID>
<extensionID>com.distriqt.square.okhttp</extensionID>
<extensionID>com.distriqt.square.okhttp3</extensionID>

Unfortunately, after adding them, the same error persisted.

I will be trying the APM thing, manifests and packaging setup has allways been an issue.

@ajwfrost After fighting with other errors, java and gradle cache, found out gradle required update in Android Studio. This popped up in studio while trying to package in command line.

This is mostly what's left for android. But monday, unfortunately it's iOS time, because it will no longer compile for developer testing: Cannot sign an IPA file on non-Mac platform: invalid JRE that does not expose sun.security classes We did update the certificates and provisionig profiles.

It would be nice if everything would be packaged in Air SDK, java and all tools.

marchbold commented 2 years ago

You are missing the androidx.core extension as I mentioned above?

Adrian-S commented 2 years ago

You are right. We had the ane but not the entry in the xml file.

EDIT: I also remember clear errors when doing something stupid like this.

neckish commented 2 years ago

Hi, I need some help with this error: I have the last ANEs from Distriqt repository.

`unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 54s

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 54s

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)`
ajwfrost commented 2 years ago

According to a site found after a bit of googling:

You will get aapt: error: resource android:color/system_neutral1_1000 not found when you are using Material-1.5.0-alpha03 or later and using compiledSdkVersion less than 31.

So can you try checking what's being used here? If you uncomment the KeepAndroidStudioOutput=true line from your adt.cfg file (in the AIR SDK "lib" folder) then instead of those /private/var/... paths, it will be using a path under your working folder that's then kept in place; you can then open that folder in Android Studio and should then open the build.gradle file under the "app" component.

This should have a dependency on a material library - so please check the version - and it should have a 'compiledSdkVersion' field which I would have thought is already at 31..?

thanks

neckish commented 2 years ago

Here is my build.gradle Hope you can help me with this. Im using material-1.5.0.

plugins { id 'com.android.application' } android { compileSdkVersion 31 buildToolsVersion "30.0.3" defaultConfig { applicationId "air.plus.eszential.ipad" minSdkVersion 14 targetSdkVersion 31 multiDexEnabled true versionCode 1000000 versionName "1.0.0" vectorDrawables.useSupportLibrary = true aaptOptions { ignoreAssetsPattern "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } splits { abi { enable true reset() include "armeabi-v7a" } } } dependencies { implementation "androidx.multidex:multidex:2.0.1" implementation files('libs/AppEntry.jar') implementation files('libs/runtimeClasses.jar') implementation files('libs/FlashRuntimeExtensions.jar') implementation files('libs/lifecycle-common-2.4.1.jar') implementation files('libs/androidx.concurrent.jar') implementation files('libs/interpolator-1.0.0.jar') implementation files('libs/annotations-4.1.1.4.jar') implementation files('libs/androidx.core.jar') implementation files('libs/androidx.recyclerview.jar') implementation files('libs/play-services-clearcut-17.0.0.jar') implementation files('libs/com.distriqt.Core.jar') implementation files('libs/lifecycle-viewmodel-savedstate-2.4.1.jar') implementation files('libs/customview-1.1.0.jar') implementation files('libs/extension-mediasession-2.17.0.jar') implementation files('libs/vectordrawable-animated-1.1.0.jar') implementation files('libs/play-services-basement-18.0.0.jar') implementation files('libs/com.distriqt.NetworkInfo.jar') implementation files('libs/lifecycle-process-2.4.1.jar') implementation files('libs/dynamicanimation-1.0.0.jar') implementation files('libs/transport-runtime-3.1.2.jar') implementation files('libs/transport-backend-cct-3.1.2.jar') implementation files('libs/firebase-encoders-json-18.0.0.jar') implementation files('libs/exoplayer-extractor-2.17.0.jar') implementation files('libs/transport-api-3.0.0.jar') implementation files('libs/firebase-encoders-proto-16.0.0.jar') implementation files('libs/play-services-measurement-sdk-api-20.1.2.jar') implementation files('libs/play-services-ads-identifier-18.0.1.jar') implementation files('libs/play-services-tasks-18.0.1.jar') implementation files('libs/recyclerview-1.2.1.jar') implementation files('libs/com.google.guava.jar') implementation files('libs/com.distriqt.playservices.Base.jar') implementation files('libs/com.distriqt.Scanner.jar') implementation files('libs/firebase-iid-interop-17.1.0.jar') implementation files('libs/firebase-installations-17.0.0.jar') implementation files('libs/protolite-well-known-types-18.0.0.jar') implementation files('libs/androidx.vectordrawable.jar') implementation files('libs/cardview-1.0.0.jar') implementation files('libs/legacy-support-core-utils-1.0.0.jar') implementation files('libs/firebase-abt-21.0.0.jar') implementation files('libs/com.myflashlab.air.extensions.permissionCheck.jar') implementation files('libs/collection-1.1.0.jar') implementation files('libs/com.distriqt.NativeWebView.jar') implementation files('libs/play-services-base-18.0.1.jar') implementation files('libs/room-runtime-2.3.0.jar') implementation files('libs/animal-sniffer-annotations-1.18.jar') implementation files('libs/com.distriqt.MediaPlayer.jar') implementation files('libs/play-services-cloud-messaging-17.0.2.jar') implementation files('libs/firebase-messaging-23.0.0.jar') implementation files('libs/media-1.4.3.jar') implementation files('libs/com.distriqt.playservices.CloudMessaging.jar') implementation files('libs/play-services-measurement-sdk-20.1.2.jar') implementation files('libs/lifecycle-runtime-2.4.1.jar') implementation files('libs/protobuf-javalite-3.17.2.jar') implementation files('libs/play-services-iid-17.0.0.jar') implementation files('libs/com.jetbrains.kotlin.jar') implementation files('libs/savedstate-1.1.0.jar') implementation files('libs/core-runtime-2.1.0.jar') implementation files('libs/fragment-1.3.6.jar') implementation files('libs/versionedparcelable-1.1.1.jar') implementation files('libs/com.distriqt.Vibration.jar') implementation files('libs/asynclayoutinflater-1.0.0.jar') implementation files('libs/emoji2-views-1.0.1.jar') implementation files('libs/emoji2-1.0.1.jar') implementation files('libs/dagger-2.27.jar') implementation files('libs/cursoradapter-1.0.0.jar') implementation files('libs/appcompat-1.4.1.jar') implementation files('libs/room-common-2.3.0.jar') implementation files('libs/lifecycle-livedata-2.4.1.jar') implementation files('libs/com.google.android.datatransport.jar') implementation files('libs/firebase-core-20.0.2.jar') implementation files('libs/auto-value-annotations-1.6.6.jar') implementation files('libs/localbroadcastmanager-1.0.0.jar') implementation files('libs/firebase-datatransport-18.1.1.jar') implementation files('libs/failureaccess-1.0.1.jar') implementation files('libs/sqlite-framework-2.1.0.jar') implementation files('libs/com.distriqt.playservices.Location.jar') implementation files('libs/com.google.android.material.jar') implementation files('libs/firebase-appcheck-interop-16.0.0-beta02.jar') implementation files('libs/material-1.5.0.jar') implementation files('libs/exoplayer-ui-2.17.0.jar') implementation files('libs/lifecycle-extensions-2.2.0.jar') implementation files('libs/com.myflashlab.air.extensions.deviceInfo.jar') implementation files('libs/lifecycle-viewmodel-2.4.1.jar') implementation files('libs/vectordrawable-1.1.0.jar') implementation files('libs/exoplayer-decoder-2.17.0.jar') implementation files('libs/play-services-location-19.0.1.jar') implementation files('libs/swiperefreshlayout-1.0.0.jar') implementation files('libs/firebase-measurement-connector-19.0.0.jar') implementation files('libs/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar') implementation files('libs/browser-1.3.0.jar') implementation files('libs/com.google.firebase.core.jar') implementation files('libs/pdfium-android-1.8.2.jar') implementation files('libs/play-services-phenotype-17.0.0.jar') implementation files('libs/guava-31.0.1-android.jar') implementation files('libs/kotlin-stdlib-common-1.4.32.jar') implementation files('libs/appcompat-resources-1.4.1.jar') implementation files('libs/drawerlayout-1.1.1.jar') implementation files('libs/com.distriqt.Notifications.jar') implementation files('libs/kotlin-reflect-1.4.32.jar') implementation files('libs/com.google.dagger.jar') implementation files('libs/play-services-safetynet-18.0.1.jar') implementation files('libs/PhotoView-1.2.4.jar') implementation files('libs/concurrent-futures-1.1.0.jar') implementation files('libs/firebase-installations-interop-17.0.0.jar') implementation files('libs/Toasty-1.2.5.jar') implementation files('libs/viewpager2-1.0.0.jar') implementation files('libs/corenativeextension.android.lib.jar') implementation files('libs/tracing-1.0.0.jar') implementation files('libs/OneSignal-4.7.3.jar') implementation files('libs/lifecycle-livedata-core-2.4.1.jar') implementation files('libs/kotlin-stdlib-jdk8-1.4.32.jar') implementation files('libs/zbar.jar') implementation files('libs/kotlin-stdlib-1.4.32.jar') implementation files('libs/com.distriqt.PushNotifications.jar') implementation files('libs/startup-runtime-1.1.1.jar') implementation files('libs/androidx.room.jar') implementation files('libs/print-1.0.0.jar') implementation files('libs/play-services-measurement-api-20.1.2.jar') implementation files('libs/com.distriqt.Dialog.jar') implementation files('libs/j2objc-annotations-1.3.jar') implementation files('libs/activity-1.3.1.jar') implementation files('libs/legacy-support-core-ui-1.0.0.jar') implementation files('libs/firebase-inappmessaging-20.1.1.jar') implementation files('libs/com.distriqt.PDFReader.jar') implementation files('libs/play-services-tagmanager-v4-impl-18.0.1.jar') implementation files('libs/androidx.browser.jar') implementation files('libs/checker-compat-qual-2.5.5.jar') implementation files('libs/androidx.cardview.jar') implementation files('libs/androidx.appcompat.jar') implementation files('libs/firebase-encoders-17.0.0.jar') implementation files('libs/documentfile-1.0.0.jar') implementation files('libs/lifecycle-service-2.4.1.jar') implementation files('libs/firebase-components-17.0.0.jar') implementation files('libs/firebase-iid-21.1.0.jar') implementation files('libs/com.google.protobuflite.jar') implementation files('libs/exoplayer-datasource-2.17.0.jar') implementation files('libs/exoplayer-core-2.17.0.jar') implementation files('libs/play-services-measurement-impl-20.1.2.jar') implementation files('libs/coordinatorlayout-1.1.0.jar') implementation files('libs/com.myflashlab.air.extensions.dependency.overrideAir.jar') implementation files('libs/com.distriqt.playservices.AdsIdentifier.jar') implementation files('libs/play-services-measurement-20.1.2.jar') implementation files('libs/repackaged.jar') implementation files('libs/exoplayer-database-2.17.0.jar') implementation files('libs/work-runtime-2.7.0.jar') implementation files('libs/androidx.work.jar') implementation files('libs/kotlin-android-extensions-runtime-1.4.32.jar') implementation files('libs/firebase-annotations-16.0.0.jar') implementation files('libs/loader-1.0.0.jar') implementation files('libs/core-1.6.0.jar') implementation files('libs/play-services-stats-17.0.3.jar') implementation files('libs/emoji2-views-helper-1.0.1.jar') implementation files('libs/play-services-measurement-base-20.1.2.jar') implementation files('libs/legacy-support-v4-1.0.0.jar') implementation files('libs/core-common-2.1.0.jar') implementation files('libs/sqlite-2.1.0.jar') implementation files('libs/slidingpanelayout-1.0.0.jar') implementation files('libs/kotlin-stdlib-jdk7-1.4.32.jar') implementation files('libs/javax.inject-1.jar') implementation files('libs/viewpager-1.0.0.jar') implementation files('libs/exoplayer-dash-2.17.0.jar') implementation files('libs/play-services-places-placereport-17.0.0.jar') implementation files('libs/annotation-experimental-1.1.0.jar') implementation files('libs/androidx.emoji2.jar') implementation files('libs/firebase-common-20.0.0.jar') implementation files('libs/annotation-1.2.0.jar') implementation files('libs/play-services-flags-18.0.1.jar') implementation files('libs/firebase-inappmessaging-display-20.1.1.jar') implementation files('libs/exoplayer-common-2.17.0.jar') implementation files('libs/firebase-analytics-20.0.2.jar') implementation project(":com.google.android.material") implementation project(":com.distriqt.extension.nativewebview") implementation project(":com.distriqt.extension.scanner") implementation project(":com.myflashlabs.deviceInfo") implementation project(":androidx.cardview") implementation project(":com.distriqt.extension.pushnotifications") implementation project(":com.onesignal") implementation project(":androidx.appcompat") implementation project(":androidx.appcompat.resources") implementation project(":androidx.recyclerview") implementation project(":com.distriqt.extension.core") implementation project(":com.distriqt.extension.notifications") implementation project(":com.distriqt.extension.dialog") implementation project(":es.dmoral.toasty") implementation project(":com.distriqt.extension.mediaplayer") implementation project(":com.google.android.exoplayer2.ui") implementation project(":com.google.android.exoplayer2.core") implementation project(":com.google.android.exoplayer2.ext.mediasession") implementation project(":androidx.emoji2") implementation project(":androidx.emoji2.widget") implementation project(":androidx.emoji2.viewsintegration") implementation project(":com.distriqt.extension.vibration") implementation project(":com.myflashlab.permissionCheck") implementation project(":com.distriqt.extension.pdfreader") implementation project(":com.myflashlab.dependency.overrideAir") implementation project(":androidx.coordinatorlayout") implementation project(":androidx.core") implementation project(":androidx.drawerlayout") implementation project(":androidx.fragment") implementation project(":androidx.lifecycle.runtime") implementation project(":androidx.lifecycle.viewmodel") implementation project(":androidx.media") implementation project(":androidx.savedstate") implementation project(":androidx.startup") implementation project(":androidx.viewpager2") implementation project(":androidx.browser") implementation project(":androidx.work") implementation project(":com.google.android.gms.base") implementation project(":com.google.android.gms.common") implementation project(":com.distriqt.extension.networkinfo") }

neckish commented 2 years ago

I restart my computer after this. And now i'm getting this:

`unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 1m 12s

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 1m 12s

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)`
ajwfrost commented 2 years ago

Okay sounds like there may be a gradle cache problem perhaps, if the error is changing and is this sort of thing. Can you try finding/deleting the below folder and then trying again? For speed, you can just open that output folder in Android Studio and try the "Build project" from there rather than having to use the AIR tools each time..

I think: /Users/neckish/.gradle/caches

thanks

marchbold commented 2 years ago

Those errors would indicate you are missing the androidx.constraintlayout extension / dependency.

neckish commented 2 years ago

Those errors would indicate you are missing the androidx.constraintlayout extension / dependency.

This worked like a charm.

Thanks @marchbold @ajwfrost

amorganiv commented 1 year ago

Is it possible to change the build.gradle 'minSdkVersion' when building an AAB package?

This error came when attempting to install the AAB on an older Kindle device: com.android.tools.build.bundletool.model.exceptions.IncompatibleDeviceException: The app doesn't support SDK version of the device: (19).

marchbold commented 1 year ago

You set the minimum sdk via the uses-sdk tag in your manifest additions:

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="33" />

Personally I wouldn't try to support anything older than 19 now, but up to you.

amorganiv commented 1 year ago

Perfecto! Thank you

jeuxdaily commented 1 year ago

hi you can only disable this line

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="33" />

good luck

amorganiv commented 1 year ago

Michael... any insights on this error with the AAB device install: com.android.tools.build.bundletool.model.exceptions.InvalidCommandException: Cannot restrict modules when the device matches a non-split APK.

marchbold commented 1 year ago

What version is the device you are testing on? I believe there may be some issues attempting to install an AAB on Android < 5.0. So test with an APK on older Android versions.

amorganiv commented 1 year ago

The device is running Android 4... and the 32bit APK does install correctly. Thank you for the info!

nboy1 commented 4 months ago

just in case some one got this error "This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered" if you are using "<![CDATA[

...." in you manifest just change it to " ..."