Open kasem-sm opened 3 days ago
Hi @kasem-sm, thanks for reporting this! Does this happen as well when using Kotlin 2.0.x?
Also, if you click on the "Build PodTrueAI: failed" line, or maybe the ":androidApp:minifyReleaseWithR8", there should be more output on the right. Maybe the rest of the stack trace is there?
Although it works with Kotlin 2.0.x, I had to upgrade to Kotlin 2.1.0-Beta because I’m using Xcode 16.
This is the output when I click "Build PodTrueAI: failed"
AGPBI: {"kind":"warning","text":"Expected stack map table for method with non-linear control flow. In later version of R8, the method may be assumed not reachable.","sources":[{"file":"/Users/user/.gradle/caches/modules-2/files-2.1/com.amazon.device/amazon-appstore-sdk/3.0.5/cb046867a6d127f404780c49287e63177e960304/amazon-appstore-sdk-3.0.5.jar"}],"tool":"R8"}
AGPBI: {"kind":"error","text":"java.lang.IllegalArgumentException: Provided Metadata instance has version 2.1.0, while maximum supported version is 2.0.0. To support newer versions, update the kotlinx-metadata-jvm library.","sources":[{}],"tool":"R8"}```
```> Task :androidApp:minifyReleaseWithR8 FAILED
java.lang.IllegalArgumentException: Provided Metadata instance has version 2.1.0, while maximum supported version is 2.0.0. To support newer versions, update the kotlinx-metadata-jvm library.
Thanks for the details! I haven't been able to reproduce it so far. I can see the same warning about the stack map table, but no errors. I have tried building a minified (and signed) APK with:
android.enableR8.fullMode=true
Some follow-up questions:
kotlinx-metadata-jvm
library to your Android source set / app module?
Describe the bug As the title says, Generating fails and the amazon-appstore-sdk comes from purchases-android
The error -
java.lang.IllegalArgumentException: Provided Metadata instance has version 2.1.0, while maximum supported version is 2.0.0. To support newer versions, update the kotlinx-metadata-jvm library.