云打包自定义基座出问题
* What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
> Failed to transform activity-1.8.0.aar (androidx.activity:activity:1.8.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Execution failed for JetifyTransform: /home/[Name]/.gradle/caches/modules-2/files-2.1/androidx.activity/activity/1.8.0/4266e2118d565daa20212d1726e11f41e1a4d0ca/activity-1.8.0.aar.
> Failed to transform '/home/[Name]/.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 https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).
> Failed to transform activity-1.8.0.aar (androidx.activity:activity:1.8.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/[Name]/.gradle/caches/modules-2/files-2.1/androidx.activity/activity/1.8.0/4266e2118d565daa20212d1726e11f41e1a4d0ca/activity-1.8.0.aar.
> Failed to transform '/home/[Name]/.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.)
以下是我的自开发原生插件依赖
"dependencies": [
"com.android.billingclient:billing:7.0.0",
"com.facebook.fresco:fresco:1.13.0",
"com.facebook.fresco:animated-gif:1.13.0",
"com.google.android.play:review:2.0.1",
"com.google.android.material:material:1.10.0",
"junit:junit:4.13.2",
"androidx.localbroadcastmanager:localbroadcastmanager:1.0.0",
"androidx.core:core:1.1.0",
"androidx.fragment:fragment:1.1.0",
"androidx.appcompat:appcompat:1.1.0",
"androidx.recyclerview:recyclerview:1.1.0",
"com.alibaba:fastjson:1.2.83"
],
1 个回复
6***@qq.com
解决了吗?遇到同样问题