> Task :app:javaPreCompileDemoDebug FAILED
Execution failed for task ':app:javaPreCompileDemoDebug'.
> Could not resolve all files for configuration ':app:DemoDebugCompileClasspath'.
> Failed to transform crashreport-3.1.0.aar (com.tencent.bugly:crashreport:3.1.0) to match attributes {artifactType=android-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
> Execution failed for AarToClassTransform: /Users/a/.gradle/caches/modules-2/files-2.1/com.tencent.bugly/crashreport/3.1.0/8a459ec1104a33e150383a37469a4713b3990f93/crashreport-3.1.0.aar.
> entry
尝试解决:1,找到这些aar的缓存目录,发现里边不止有一个aar,说明此目录中的文件被篡改过,可能出问题,所以,删除此缓存目录,然后重新build,下载线上的aar
问题解决
网友评论