我正在使用Android studio 1.5。当我点击运行时,我会收到
unable to determine package name
我检查了清单文件,它如下图所示...但我不知道为什么活动都标有红色,即使是应用程序名称和图标 同样。
请告诉我如何解决此问题
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'
}
答案 0 :(得分:0)
我按照与user2121相同的步骤进行操作,最终尝试降级到Android Studio 1.4.1。与user2121不同,我仍然收到错误,但与1.5.1时不同。
AndroidManifest.xml file not found
在搜索到这个新错误后,我找到了this StackOverflow的答案,它解决了我在1.5.1以及1.4.1上的问题。