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

Does this library support AndroidX? #63

Open
dylenaw opened this issue Jun 3, 2019 · 0 comments
Open

Does this library support AndroidX? #63

dylenaw opened this issue Jun 3, 2019 · 0 comments

Comments

@dylenaw
Copy link

dylenaw commented Jun 3, 2019

Errors occur when I change the theme

I get the following error when I try to change the theme
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.drewan.klix, PID: 9595 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.drewan.klix/com.drewan.klix.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.getDecorView()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.getDecorView()' on a null object reference at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:675) at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:618) at androidx.appcompat.app.AppCompatDelegateImpl.initWindowDecorActionBar(AppCompatDelegateImpl.java:390) at androidx.appcompat.app.AppCompatDelegateImpl.getSupportActionBar(AppCompatDelegateImpl.java:377) at androidx.appcompat.app.AppCompatActivity.getSupportActionBar(AppCompatActivity.java:105) at com.jaredrummler.cyanea.tinting.SystemBarTint.<init>(SystemBarTint.kt:126) at com.jaredrummler.cyanea.delegate.CyaneaDelegateImplBase.tintBars(CyaneaDelegateImplBase.kt:150) at com.jaredrummler.cyanea.delegate.CyaneaDelegateImplBase.onCreate(CyaneaDelegateImplBase.kt:60) at com.jaredrummler.cyanea.delegate.CyaneaDelegateImplV21.onCreate(CyaneaDelegateImplV21.kt:45) at com.jaredrummler.cyanea.delegate.CyaneaDelegateImplV23.onCreate(CyaneaDelegateImplV23.kt:53) at com.jaredrummler.cyanea.delegate.CyaneaDelegateImplV24.onCreate(CyaneaDelegateImplV24.kt:40) at com.jaredrummler.cyanea.app.CyaneaAppCompatActivity.onCreate(CyaneaAppCompatActivity.kt:48) at com.drewan.klix.MainActivity.onCreate(MainActivity.java:14) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6119)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)  Application terminated.

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

1 participant