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
Set Margins in a Linearlayout Programmatically
Using Static Variables in Android
How Does Activity.Finish() Work in Android
Java Exec() Does Not Return Expected Result of Pipes' Connected Commands
Java -Xbootclass Path Is No Longer a Supported Option
Problems Installing Java Ee Sdk on Linux
Certificateexception: No Subject Alternative Names Present
In Java, "5/0" Statement Doesn't Fire Sigfpe Signal on My Linux MAChine, Why
How to Kill This Tomcat Process in Terminal
How to Use Swingworker in Java
How to Parse JSON Array with Gson
Java.Lang.Numberformatexception: Invalid Double: " "
The Following Classes Could Not Be Instantiated: - Android.Support.V7.Widget.Toolbar
Java Jsch Changing User on Remote MAChine and Execute Command