Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.VerifyError when run app #18

Open
wqycsu opened this issue May 8, 2016 · 7 comments
Open

java.lang.VerifyError when run app #18

wqycsu opened this issue May 8, 2016 · 7 comments

Comments

@wqycsu
Copy link

wqycsu commented May 8, 2016

java.lang.VerifyError: frogermcs/io/githubclient/ui/activity/SplashActivity$AjcClosure1
                                                     at frogermcs.io.githubclient.ui.activity.SplashActivity.onCreate(SplashActivity.java:46)
                                                     at android.app.Activity.performCreate(Activity.java:5231)
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135)
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                                                     at android.os.Handler.dispatchMessage(Handler.java:102)
                                                     at android.os.Looper.loop(Looper.java:136)
                                                     at android.app.ActivityThread.main(ActivityThread.java:5001)
                                                     at java.lang.reflect.Method.invokeNative(Native Method)
                                                     at java.lang.reflect.Method.invoke(Method.java:515)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                                                     at dalvik.system.NativeStart.main(Native Method)

Hi, when I build this project with gradle build tool 2.1.0 and run the app, I get the above error. But after reverting gradle to 2.0.0, this error disappear, I do not know why this happens.

@harichen
Copy link

@wqycsu 我也遇到这个问题,你解决了吗?

@wqycsu
Copy link
Author

wqycsu commented May 15, 2016

@harichen use gradle 2.0.0

@wanyt
Copy link

wanyt commented Jun 8, 2016

@harichen 把gradle的版本改成2.0.0就可以运行了。 I met this error too, and fix it by modify Android plugin version to 2.0.0.

@eddiecubed
Copy link

You can use the latest android plugin version (2.1.2) with this example. You need to provide the classpathto Android metrics above the android build tools. Also, you can only Debug the application. This goes beyond if the BuildConfig.DEBUG is set to true or if the debuggable flag is set to true in your manifest.

@feimengwang
Copy link

classpath 'com.android.tools.build:gradle:2.1.2'
I am using this, but I got the same error.

@feimengwang
Copy link

gradle 2.0.0 works for me

@eddiecubed
Copy link

What version of gradle was being used? You would know this based on the distributionUrl in gradle-wrapper.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants