Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将“adb 卸载”集成到 Eclipse。我切换到
${project_name}不返回com.my.project. 我需要在第二个参数中指定哪个变量而不是${project_name}?
${project_name}
com.my.project.
从命令行看起来像“ adb uninstall com.my.project”
adb uninstall com.my.project
它实际上
adb uninstall packagename
在android中,每个应用程序都由包名唯一标识,因此我们在这里指定包名。
但我不确定如何在配置中获取包名。在代码中,您可以从
getPackageManager().getPackageInfo(getPackageName(), 0).packageName
请参阅此站点以修复它...这里和这里。.