android - android studio 中未确定包名

标签 android android-studio intellij-idea android-manifest

我正在使用 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'
    }

enter image description here

最佳答案

我遵循与 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/

相关文章:

java - 类似sha512的php for android密码登录

Android 支持存储库和持续集成

java - 需要帮助为健身房客户创建登录系统

intellij-idea - 如何将 PyCharm 字体设置回默认大小?

android - 如何使用android实现验证码

android - 用于在 Genymotion 上播放音频的 adb shell 命令

android - Gradle settings cannot be cast 错误

Android Studio : My project view looks different

java - 无法使用 SSL 运行 Spring Boot 应用程序

具有多个模块的 Grails/IntelliJ 设置