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

Crash at app launch #15

Closed
oofoamalu opened this issue May 12, 2017 · 6 comments
Closed

Crash at app launch #15

oofoamalu opened this issue May 12, 2017 · 6 comments

Comments

@oofoamalu
Copy link

Find stacktrace below:

05-12 13:23:39.579 21992-21992/tie.hackathon.travelguide E/AndroidRuntime: FATAL EXCEPTION: main
Process: tie.hackathon.travelguide, PID: 21992
java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/app/tie.hackathon.travelguide-1/base.apk)
at android.support.v4.view.ViewCompat$LollipopViewCompatImpl.setOnApplyWindowInsetsListener(ViewCompat.java:1558)
at android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(ViewCompat.java:2819)
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:410)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
at tie.hackathon.travelguide.Splash.onCreate(Splash.java:17)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@hanmeimei888
Copy link

hanmeimei888 commented May 15, 2017

the question like this is the most because of librarys
i'm resolve by doing this:
compile('com.jakewharton:butterknife:8.5.1') {
exclude module: 'appcompat-v7'
exclude group: 'com.android.support'
}
then rebuild
goodluck!

@hanmeimei888
Copy link

and don‘t forget 'annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

@hanmeimei888
Copy link

(your head is so beautiful

@oofoamalu
Copy link
Author

Thanks!

I added the following:

compile ('com.jakewharton:butterknife:8.5.1')  {
    exclude module:'appcompat-v7', group:'com.android.support'
}

That solved the crash.

Also on the side, I used the latest appcompat-v7 versions

Is there a need to submit a PR for this? I'm not certain if anyone has experienced this crash before.

@hanmeimei888
Copy link

yeah , i think we should do this.
someone i have know is suffering with this issue too,
in fact i have met this crash before by 'fresco'..etc..,in this project i think it's caused by
'com.jakewharton:butterknife:8.5.1'.
can you do this? I'm new guy for github,not familiar with operation

ps: i have 0 followers now ,could you click following for me ? It's just a cutie's hope...

@prabhakar267
Copy link
Member

@Swati4star please check if there is a need to add this to the code or not
mention : @oofoamalu

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

3 participants