Status Update
Comments
ra...@gmail.com <ra...@gmail.com> #2
any soluution ?
no...@gmail.com <no...@gmail.com> #3
nope. i haven't found a solution yet and i have pretty much trued every possbile gradle and java combinations based on the compatibility matrix. and also attempted jetified to ignore the aar file which also is not working. not sure how to proceed with this one. anyone ?
di...@gmail.com <di...@gmail.com> #4
I am using RN and I had similar problem
I fixed it
1. update in build.gradle
buildToolsVersion = "31.0.0-rc3"
compileSdkVersion = 31
targetSdkVersion = 31
2. comment in grade.properties
#android.enableJetifier=true
3. upgrade some dependencies in package json compatible Java Version ( 11 ) and Node, in my case "react-native-iap": from "^6.0.6". to. "^7.0.0",
I fixed it
1. update in build.gradle
buildToolsVersion = "31.0.0-rc3"
compileSdkVersion = 31
targetSdkVersion = 31
2. comment in grade.properties
#android.enableJetifier=true
3. upgrade some dependencies in package json compatible Java Version ( 11 ) and Node, in my case "react-native-iap": from "^6.0.6". to. "^7.0.0",
mo...@gmail.com <mo...@gmail.com> #5
1: Go to your app-level build.grade. enter image description here
2:Scroll down to "android{ " paste this code carefully(not disturbing any other brakets.)
lintOptions {
disable 'InvalidPackage'
disable "Instantiatable"
checkReleaseBuilds false
abortOnError false
}
3:run "flutter clean"
4:run "flutter pub get"
5:If you want to build apk of your project then run "flutter build apk"
2:Scroll down to "android{ " paste this code carefully(not disturbing any other brakets.)
lintOptions {
disable 'InvalidPackage'
disable "Instantiatable"
checkReleaseBuilds false
abortOnError false
}
3:run "flutter clean"
4:run "flutter pub get"
5:If you want to build apk of your project then run "flutter build apk"
Description
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Failed to transform activity-1.8.0.aar (androidx.activity:activity:1.8.0) to match attributes {artifactType=android-manifest, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
> Execution failed for JetifyTransform: /Users/sudeshna/.gradle/caches/modules-2/files-2.1/androidx.activity/activity/1.8.0/4266e2118d565daa20212d1726e11f41e1a4d0ca/activity-1.8.0.aar.
> Failed to transform '/Users/sudeshna/.gradle/caches/modules-2/files-2.1/androidx.activity/activity/1.8.0/4266e2118d565daa20212d1726e11f41e1a4d0ca/activity-1.8.0.aar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 61. (Run with --stacktrace for more details.)
Suggestions:
- Check out existing issues at
- If this issue has not been filed, please report it at
1. Tried removing android.enableJetifier=true or adding android.jetifier.ignorelist=/Users/sudeshna/.gradle/caches/modules-2/files-2.1/androidx.activity/activity/1.8.0/4266e2118d565daa20212d1726e11f41e1a4d0ca/activity-1.8.0.aar
but it gives more errors.
AGPBI: {"kind":"error","text":"Can't determine type for tag '<macro name=\"m3_comp_assist_chip_container_shape\">?attr/shapeAppearanceCornerSmall</macro>'","sources":[{"file":"/Users/sudeshna/.gradle/caches/transforms-2/files-2.1/3966c1e03ad0b5cbb685f064d72abf76/material-1.11.0/res/values/values.xml"}],"tool":"Resource and asset merger"}
Can't determine type for tag '<macro name="m3_comp_assist_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro>'etc etc etc
I am using Android Studio Hedgehog | 2023.1.1 Patch 2, JDK version 11(tried with 13 as well) & Gradle version 7.2(tried with 6.5 and 7.3 as well).
Can you help me quickly resolve this error if possible?