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

编译并运行tag:3.0.0下的demo示例:demo-replugin-sample时,点击最后一个按钮install or update external plugin直接崩溃 #1087

Open
life02 opened this issue Jan 16, 2025 · 2 comments

Comments

@life02
Copy link

life02 commented Jan 16, 2025

问题详细描述 Detailed description of the problem

编译并运行tag:3.0.0下的示例demo-replugin-sample时,最后一个按钮install or update external plugin直接崩溃

复现问题步骤 Steps to reproduce the problem

其它重要信息 Other important information

replugin-host-lib/gradle Version:3.0.0
rePlugin-plugin-lib/gradle Version:3.0.0

Android API Version:
Android 手机型号&ROM(Phone model & ROM):
sdk 19
tv盒子:[ro.build.model]: [B860AV2.1]

Logcat上下文 Logcat context

01-16 14:51:13.899 E/AndroidRuntime(10973): Process: com.qihoo360.replugin.sample.host, PID: 10973

01-16 14:51:13.899 E/AndroidRuntime(10973): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.qihoo360.replugin.sample.host/com.qihoo360.replugin.sample.host.loader.a.ActivityN1NRNTS3}: android.view.InflateException: Binary XML file line #24: Error inflating class android.widget.ListView

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread.access$800(ActivityThread.java:135)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.os.Handler.dispatchMessage(Handler.java:102)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.os.Looper.loop(Looper.java:136)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread.main(ActivityThread.java:5068)

01-16 14:51:13.899 E/AndroidRuntime(10973): at java.lang.reflect.Method.invokeNative(Native Method)

01-16 14:51:13.899 E/AndroidRuntime(10973): at java.lang.reflect.Method.invoke(Method.java:515)

01-16 14:51:13.899 E/AndroidRuntime(10973): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:857)

01-16 14:51:13.899 E/AndroidRuntime(10973): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:673)

01-16 14:51:13.899 E/AndroidRuntime(10973): at dalvik.system.NativeStart.main(Native Method)

01-16 14:51:13.899 E/AndroidRuntime(10973): Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class android.widget.ListView

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.createView(LayoutInflater.java:620)

01-16 14:51:13.899 E/AndroidRuntime(10973): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)

01-16 14:51:13.899 E/AndroidRuntime(10973): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:291)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.Activity.setContentView(Activity.java:1956)

01-16 14:51:13.899 E/AndroidRuntime(10973): at com.qihoo360.replugin.sample.demo3.MainActivity.onCreate(MainActivity.kt:47)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.Activity.performCreate(Activity.java:5281)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1101)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)

01-16 14:51:13.899 E/AndroidRuntime(10973): ... 11 more

01-16 14:51:13.899 E/AndroidRuntime(10973): Caused by: java.lang.reflect.InvocationTargetException

01-16 14:51:13.899 E/AndroidRuntime(10973): at java.lang.reflect.Constructor.constructNative(Native Method)

01-16 14:51:13.899 E/AndroidRuntime(10973): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.view.LayoutInflater.createView(LayoutInflater.java:594)

01-16 14:51:13.899 E/AndroidRuntime(10973): ... 24 more

01-16 14:51:13.899 E/AndroidRuntime(10973): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f03009b a=2}

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.content.res.Resources.loadDrawable(Resources.java:2069)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.content.res.TypedArray.getDrawable(TypedArray.java:602)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.widget.AbsListView.(AbsListView.java:785)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.widget.ListView.(ListView.java:146)

01-16 14:51:13.899 E/AndroidRuntime(10973): at android.widget.ListView.(ListView.java:142)

01-16 14:51:13.899 E/AndroidRuntime(10973): ... 27 more

@life02
Copy link
Author

life02 commented Jan 16, 2025

1451.txt
详细log,如下。3.0.0版本上的demo无法在4.4的版本上运行了。

@life02
Copy link
Author

life02 commented Jan 16, 2025

回退到2.3.1运行demo示例,最后一个按钮install or update external plugin,可以正常安装。
但是打开plugin的页面后,plugin内部页面里的按钮,点击以后都无反应。且点击时无任何log显示。
可以看出,这个lib库,对于Android版本的前后兼容有点问题。

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