我正在使用 Android studio 1.5。当我点击运行时我收到
unable to determine package name
我检查了 list 文件,如下图所示...但我不知道为什么 Activity 甚至应用程序名称和图标都标记为红色 也是如此。
请告诉我如何解决这个问题
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.com.bt_11"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
}
最佳答案
我遵循与 user2121 相同的步骤,最终尝试降级到 Android Studio 1.4.1。与 user2121 不同,我仍然遇到错误,但与 1.5.1 上的情况不同。
AndroidManifest.xml file not found
在搜索这个新错误时,我发现 this StackOverflow 答案为我解决了 1.5.1 和 1.4.1 上的问题。
关于android - android studio 中未确定包名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34047553/