平台版本是android 7.0,在adb install *.apk 会提示下面的错误:

 Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

 

方法1:(推荐

修改AndroidManifest.xml 中android:testOnly="true" 改成 android:testOnly="false",或者直接去掉。

备注:如果AndroidManifest.xml中没有android:testOnly这个属性一般默认为“true”。

修改完成记得点一下,Build APK(s)

 

 

 

 

 

 

 

 

方法2:

adb push *.apk /tmp

adb shell pm install -t /tmp/*.apk

 

方法3:

adb install -t *.apk

 

转载于:http://blog.csdn.net/shift_wwx/article/details/78468397

更多相关文章

  1. 浅谈Java中Collections.sort对List排序的两种方法
  2. Python list sort方法的具体使用
  3. python list.sort()根据多个关键字排序的方法实现
  4. cocos2dx 使用jni方法获取android mac地址
  5. Canvas
  6. 介绍GLSurfaceView
  7. 【Android】从源码中探讨Handler机制
  8. android 修改电脑盘符名称 USB连接电脑默认连接方式
  9. Android(安卓)studio 工具中的“Attach Debugger to Android(安

随机推荐

  1. location of the android sdk has not be
  2. android判断当前系统用的是什么语言
  3. Android(安卓)源码
  4. Android常见错误
  5. 理解Android的context
  6. android 网络请求方式 例子
  7. Android(安卓)代码实现重启
  8. Android一些网站介绍
  9. Android(安卓)Initialization Process
  10. Android(安卓)Timer 更好方法