question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.VerifyError: ActivityWelcome$AjcClosure1

See original GitHub issue

Ever 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:closed
  • Created 8 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
embydextrous-zzcommented, May 30, 2016

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.

0reactions
embydextrous-zzcommented, Jun 22, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found