Whenver I try and run the app it crashes with error. Below is the error logcat while crash.
com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\\Users\\ahsan.gradle\\caches\\transforms-1\\files-1.1\\versionedparcelable-28.0.0.aar\\5e954ff0b6f280675155312adb7d7dad\\jars\\classes.jar
com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
java.lang.NoClassDefFoundError: com/android/tools/r8/com/google/common/collect/ImmutableList$ReverseImmutableList java.lang.ClassNotFoundException: com.android.tools.r8.com.google.common.collect.ImmutableList$ReverseImmutableList java.util.zip.ZipException: invalid LOC header (bad signature)
i tried everything, All the possible solution which are available on StackOver flow. but I didn't get the solution but at last, I resolve this issue by using
classpath' com.android.tools:r8:1.2.52'
add this classpath into build.gradle(project:YourApp) then sync the project this resolve my problem :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.