ApiDemo安装报错

1、安装ApiDemo报错

root@meie:~# adb install '/work/updatecode/ApiDemos/bin/ApiDemos.apk' 
2659 KB/s (2474915 bytes in 0.908s)
	pkg: /data/local/tmp/ApiDemos.apk
Failure [INSTALL_FAILED_MISSING_FEATURE]

 2、注释AndroidManifest.xml里面的

   1. <uses-permission android:name="android.permission.CAMERA" />  
   2.     <uses-feature android:name="android.hardware.camera" />  
   3.     <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />  

 3、编译源码,再次安装OK

你可能感兴趣的:(demo)