简体   繁体   English

包名称在android studio中不确定

[英]package name is not determined in android studio

i am using Android studio 1.5. 我正在使用Android Studio 1.5。 and at when i click run i receive 当我单击运行时,我收到

unable to determine package name 

i checked the manifest file and it is as shown in the image below...but i do not know why the activities are marked with red even the app name and the icon as well. 我检查了清单文件,如下图所示...但是我不知道为什么活动即使应用程序名称和图标也用红色标记。

please let me know how to fix this 请让我知道如何解决此问题

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'
    }

在此处输入图片说明

I followed the same steps as user2121 and eventually tried downgrading to Android Studio 1.4.1. 我遵循与user2121相同的步骤,并最终尝试降级到Android Studio 1.4.1。 Unlike user2121, I still got an error, however it was different than when on 1.5.1. 与user2121不同,我仍然收到错误,但是它与1.5.1上的错误不同。

AndroidManifest.xml file not found

Upon searching for this new error, I found this StackOverflow answer which solved the problem for me on 1.5.1 as well as 1.4.1. 搜索此新错误后,我找到了这个 StackOverflow答案, 答案在1.5.1和1.4.1上为我解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM