Please check this error.
It is v2.1.0 build error.
Unity IAP : v2.1.0 (for AmazonStore)
Unity Version : 2019.4.21f1
4816: [Unity] EXCEPTION: CommandInvokationFailure: Gradle build failed.
4817: [Unity] /BUILD_PATH/jdk1.8.0_221.jdk/Contents/Home/bin/java -classpath "/UNITY_PATH/Unity/macos/published/Unity-2019_4_12f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
4818: [Unity] stderr[
4819: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
4820: [Unity] FAILURE: Build failed with an exception.
4821: [Unity] * What went wrong:
4822: [Unity] Execution failed for task ':launcher:preReleaseBuild'.
4823: [Unity] > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
4824: [Unity] > Failed to transform artifact 'AmazonAppStore.aar (:AmazonAppStore:)' to match attributes {artifactType=android-manifest}
4825: [Unity] > Execution failed for JetifyTransform: /BUILD_PATH/riverapps.pharaoh-pyramid-pop.amazon-store/Temp/gradleOut/unityLibrary/libs/AmazonAppStore.aar.
4826: [Unity] > Failed to transform '/BUILD_PATH/riverapps.pharaoh-pyramid-pop.amazon-store/Temp/gradleOut/unityLibrary/libs/AmazonAppStore.aar' using Jetifier. Reason: 3. (Run with --stacktrace for more details.)
4827: [Unity] * Try:
4828: [Unity] 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.
4829: [Unity] * Get more help at https://help.gradle.org
4830: [Unity] BUILD FAILED in 47s
Thank you for your support.
This only started for you when you added IAP to your project? We will take a look
I used v1.22.0.
After upgrading to 2.1.0, it occurred.
Thank you!
I just tested it and didn’t see this error. Please kindly test it in a new project to see whether the error is caused by IAP.
The same problem update from IAP v 1.23 Unity v 2019.2.21f1
Still unable to reproduce, not sure what step was missed. Will it work after removing the IAP and re-importing it?
Yes, I tried to re-import the same error, maybe I’m doing something wrong?
- Window - Package Manager - In App Purchasing Remove
- Plugins/UnityPurchasing remove folder
Integrate
- Window - Package Manager - In App Purchasing Install
- Services - In App Purchasing - Import and install
- Window - Unity IAP - Receip Validation Obfuscator - Enter Public key and press Obfuscate Google Play Licence Key
I had the same error after updating from UIAP v1.23 to v2.1.0. I’ve downloaded AmazonInAppPurchasing_Android from official Amazon website, and replaced in-app-purchasing-2.0.61.jar with in-app-purchasing-2.0.76.jar (from AmazonInAppPurchasing_Android) inside AmazonAppStore.aar. And after that build worked. Although - not sure if the in-app purchases work properly, did not have time to test it yet. But it looks like some bug in version 2.0.6
Exactly the same problem since I updated. I can’t build for Amazon.
Btw I updated on the “services” tab. I went to in-app, it said it has an update and told it to update.
Ironically, on the package manager window, the in-app purchase version hasn’t been updated since September. So it may be a problem only with the services update instead of the package manager version.
I tried to check previous version.
v1.23.5 normal
v2.1.0 buid error
Confirmed. We will investigate it, sorry for the inconvenience.
As a workaround, downgrading to the previous version should work. Unity IAP Previous Versions (Obsolete - please see Package Manager)
We will release a new IAP version(IAP 2.1.1) soon, which should have fixed this problem.
2.1.1 has been released and addresses this issue! Unity IAP package 4.12.2 is now available page-2#post-6459061