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

studio4.0.1版本下,androidx 在SDK初始化报错 #92

Open
yihuangxing opened this issue Aug 19, 2020 · 2 comments
Open

studio4.0.1版本下,androidx 在SDK初始化报错 #92

yihuangxing opened this issue Aug 19, 2020 · 2 comments

Comments

@yihuangxing
Copy link

Caused by: java.lang.ClassCastException: androidx.collection.SimpleArrayMap cannot be cast to java.util.Map
at com.limpoxe.fairy.core.compat.CompatForSupportv7ViewInflater.installPluginCustomViewConstructorCache(CompatForSupportv7ViewInflater.java:27)
at com.limpoxe.fairy.core.PluginLoader.initLoader(PluginLoader.java:80)
at com.app.demo.APPAplication.onCreate(APPAplication.java:27)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4606)
at android.app.ActivityThread.access$1500(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5307) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 

@yihuangxing
Copy link
Author

自己测试了一把,把androidx注释掉,然后初始化SDK没有问题

@limpoxe
Copy link
Owner

limpoxe commented Sep 26, 2020

目前AndroidX只支持1.0.0, 其他版本没有适配 另外android gradle plugin版本支持到3.5.3

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