Android issue: adb install … 发生异常 [INSTALL_FAILED_TEST_ONLY: installPackageLI

apk不能用build目录运行时生成的, 需要使用 gradle打包命令生成的apk文件。

注意检查gradle的版本,不能是alpha等非release版本

注意检测manifest.xml ,

 <application android:testOnly="true" …/>

上面的 true 要改成false, 或 直接去掉 testOnley配置

猜你喜欢

转载自blog.csdn.net/jjwwmlp456/article/details/78505711