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

Fatal Exception: java.lang.NoSuchMethodError: android.view.Window.setStatusBarColor #2540

Closed
TJHello opened this issue Nov 22, 2022 · 0 comments

Comments

@TJHello
Copy link

TJHello commented Nov 22, 2022

Current use version?

当前使用的版本是多少?

    implementation 'io.github.lucksiege:pictureselector:v3.10.7'
    implementation 'com.github.bumptech.glide:glide:4.14.2'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
    implementation 'io.github.lucksiege:ucrop:v3.10.7'

Will this problem occur in demo?

Demo能否复现这问题?

![image](https://user-images.githubusercontent.com/35674478/203291776-b9a5b6a9-eef0-4cad-99a6-de83b7243704.png)
![image](https://user-images.githubusercontent.com/35674478/203291839-ab02a78c-0414-4b13-95fd-fb10caad11b4.png)
https://stackoverflow.com/questions/30705940/android-setstatusbarcolor-nosuchmethoderror-exception

Describe the problem or provide an error log?

描述问题或提供错误log?

image

Fatal Exception: java.lang.NoSuchMethodError: android.view.Window.setStatusBarColor
       at com.luck.picture.lib.immersive.ImmersiveManager.translucentStatusBar(ImmersiveManager.java:125)
       at com.luck.picture.lib.basic.PictureCommonFragment.setTranslucentStatusBar(PictureCommonFragment.java:328)
       at com.luck.picture.lib.basic.PictureCommonFragment.onViewCreated(PictureCommonFragment.java:313)
       at com.luck.picture.lib.PictureSelectorFragment.onViewCreated(PictureSelectorFragment.java:246)
       at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
       at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
       at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
       at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
       at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
       at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
       at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
       at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
       at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1178)
       at android.app.Activity.performStart(Activity.java:5457)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2493)
       at android.app.ActivityThread.access$800(ActivityThread.java:166)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5584)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
       at dalvik.system.NativeStart.main(NativeStart.java)
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

2 participants