Android Java.Lang.Verifyerror

Android java.lang.VerifyError?

Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?

java.lang.VerifyError on Android Studio 3.2 Upgrade

Resolved by updating proguard-project.txt

FROM:

-assumenosideeffects class android.util.Log {
*;

}

TO:

-assumenosideeffects class android.util.Log {
public static *** v(...);
public static *** d(...);
public static *** i(...);
public static *** w(...);
public static *** e(...);
}

WorkManager: java.lang.VerifyError: Verifier rejected class androidx.work.impl.OperationImpl

The solution was a tad weird, I admit.

My first step was to update the dependency versions for WorkManager as well as Coroutines to the latest versions (as stated in the question details). After that, I updated the provider<> tag in my AndroidManifest.xml file from this:

<provider
android:name="androidx.work.impl.WorkManagerInitializer"
android:authorities="${applicationId}.workmanager-init"
tools:node="remove" />

to this:

<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge" />

After that, everything just worked fine. /p>


Related Topics



Leave a reply



Submit