我在网上找到不少,说什么能够直接在真机中删除该程序,从新执行便可,或在shell中直接adb uninstall <package name>后从新安装。我一直不明白这句是什么意思。这时我就按adb unistall 是什么意思在google内查找,结果认我想出来了.html
但 package name 又是什么呢. 这时我想到AndroidManifest.xml的配置文件内有这个参数android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.apis"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".ApiDemos"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8"></uses-sdk>
</manifest>shell
这时先运行android模拟机,并在cmd内运行,固然你要定位adb.exe的目录,我是放在C:\android-sdk-windows\platform-tools 下windows
C:\android-sdk-windows\platform-tools> adb uninstall com.example.android.apis.api
从新运行就能够了
app
个人第一个Android应用,移动开发从如今开始google