android - 如何在android studio中获取applicationid?
问题描述
我在我的 android studio 项目的 build.gradle (Module:app) 中错误地删除了我的 applicationId。我有什么办法可以重置它吗?我无法运行、调试或重建我的项目。请帮忙,我卡住了。
解决方案
像这样在gradle中重写它..
android {
compileSdkVersion 28
defaultConfig {
applicationId "abc.com.mobile"
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
如果应用程序已经发布,然后转到应用程序链接,并且在 id= 之后的链接中是您的包名,因为在此链接中 ez.intandif.iniplayer 是包名。 https://play.google.com/store/apps/details?id=ez.intandif.iniplayer
推荐阅读
- python - 无法在 Windows 平台上的 QtMultimedia 中获取相机列表
- mercurial - 当您在标签存在之前更新时,.hgtags 如何工作?
- flutter - 颤振错误:68:14:错误:找不到吸气剂:“上下文”。和未处理的异常:“Null”类型不是“BuildContext”类型的子类型
- .net - 从脚本创建 WebHost 时无法加载 InplaceStringBuilder
- python - UnicodeDecodeError:“utf-8”编解码器无法解码位置 1 的字节 0xbc:无效的起始字节——Pyodbc
- python - 创建 CKAN 扩展错误:没有这样的命令“创建”
- python - 使用 SQLAlchemy ORM,当我将带有外键的行提交给 sqlalchemy.ext.automap 对象时,它返回 ValueError: found an unsupported type
- selenium - 使用 Selenium FindElements By Xpath 创建一个 HTML DOM 元素以通过测试
- c# - Tibco Spotfire WinForm 中未捕获的异常
- linux - 2>&1 与 2>>&1 有区别吗?