
1 frantic 2019 年 9 月 5 日 看看你项目的`AndroidManifest.xml` 中的`provider`的`android:authorities`包名是不是没动态替换 |
2 getYourMother OP @frantic 确实没替换,不过我动态替换成不同的包名后还是安装失败..貌似跟这个也没关系? |
3 z42514 2019 年 9 月 5 日 用 adb install 安装,看看更详细的报错说明 |
5 getYourMother OP @z42514 看到了: Performing Streamed Install adb: failed to install app-dwpd-release.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI] |
6 frantic 2019 年 9 月 5 日 @getYourMother 你可以把 AndroidManifest 和 对应的 build.grale 脱敏后上传到 gist 上面然后让大家看看 这样解决问题更快一点 |
7 getYourMother OP @nicevar 嗯,我已经 ctrl+shift+f 把找到的都替换了,就是还是失败... |
8 yukiww233 2019 年 9 月 5 日 testonly 一般是 android studio 直接运行出来的 debug 包 打 release 包或者在 gradle 里加 android.injected.testOnly=false |
9 getYourMother OP 感谢各位大佬,问题已经解决了,主要还是包名冲突的问题,我用 adb install -t 安装 apk 时告诉我在 androidmanifest 里配置的极光推送的包名有冲突,因为是用的动态的 applicationId,所以 ctrl+shift+f 时没找到...总之折腾了快两天总算解决了.感谢大家 |
10 secretman 2019 年 9 月 5 日 一看就是包名没替换干净,问问题上代码,浪费一群老哥的好心好意~ |