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

安装插件apk时崩溃,提示Not a valid apk #618

Closed
wuxinrong1981415 opened this issue Jul 9, 2018 · 2 comments
Closed

安装插件apk时崩溃,提示Not a valid apk #618

wuxinrong1981415 opened this issue Jul 9, 2018 · 2 comments

Comments

@wuxinrong1981415
Copy link

wuxinrong1981415 commented Jul 9, 2018

问题详细描述 Detailed description of the problem

采用“外置式”配置application,已经保证attachBaseContext和onCreate正确顺序调用。

安装插件时崩溃,提示:Not a valid apk
(独立安装插件apk是正常运行的)

复现问题步骤 Steps to reproduce the problem

其它重要信息 Other important information

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

Android API Version:
Android 手机型号&ROM(Phone model & ROM):
三星 S8 edge & Android 8.0

Logcat上下文 Logcat context

D/plugin: 插件 /sdcard/plugins/privatemessage.apk 存在, 准备安装...
D/RePlugin.ws001: MP.pluginDownloaded ... path=/sdcard/plugins/privatemessage.apk
D/RePlugin.ws001: pluginDownloaded: path=/sdcard/plugins/privatemessage.apk
E/RePlugin.PluginManagerServer: installLocked: Not a valid apk. path=/sdcard/plugins/privatemessage.apk

@zuzhao
Copy link

zuzhao commented Sep 25, 2018

最近也在研究,碰到同样的问题,视乎是android 6.0动态权限引起的。动态获取权限之后,再次进入就能够安装成功。

@bnotebook
Copy link
Collaborator

sd卡的读取和存储权限是必须要具备的。

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