java.lang.VerifyError: ActivityWelcome$AjcClosure1
See original GitHub issueEver since adding the AskPermissions annotations I’ve been getting the VerifyError below:
java.lang.VerifyError: ActivityWelcome$AjcClosure1
This is honestly my first time seeing an error of this sort so I’ll keep digging to see if there’s a way to resolve on my own. Posting here just incase others experience a similar issue or have suggestions for resolving.
@AskPermission(Manifest.permission.ACCESS_FINE_LOCATION)
private void startTrackingLocation() {
mTracker = LocationTracker.getInstance(this);
mTracker.startTracking();
}
EDIT
Forgot to mention this is happening on android 4.4.1 and 4.4.2 from what I can tell so far.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Causes of getting a java.lang.VerifyError - Stack Overflow
java.lang.VerifyError can be the result when you have compiled against a different library than you are using at runtime. For example, this happened...
Read more >Causes and Avoidance of java.lang.VerifyError - Baeldung
1. Introduction. In this tutorial, we'll look at the cause of java.lang.VerifyError errors and multiple ways to avoid it.
Read more >Why java.lang.VerifyError Occurs in Java and How to Solve this?
This constructor creates an instance of the VerifyError class, setting null ... VerifyError: Cannot inherit from final class at java.lang.
Read more >VerifyError (Java Platform SE 8 ) - Oracle Help Center
Constructs an VerifyError with the specified detail message. Method Summary. Methods inherited from class java.lang.Throwable · addSuppressed, fillInStackTrace, ...
Read more >Caused by java.lang.VerifyError #2185 - google/gson - GitHub
I have encountered this error code recently and the json return verify error code i am not able to solve this hope anyone...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am getting this error in debug build where let code is in classes2.dex while in release build there is only one dex file so not getting this error.
I have also not observed this error in release builds. I think instant run is the culprit. But I guess when I got this error first time I was using a lower version of android studio and instant run was not present. Instant run is nightmare a lot of times. Sometimes it swaps my icons and do stupid stuff. I think this is not a library bug.