2015-12-02 58 views
2

我正在使用Android Studio 1.5。在當我點擊運行我收到包名不在android studio中確定

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

enter image description here

+0

請發佈您的build.gradle文件,其中一個用於'app'模塊:-) – Kelevandos

+0

@Kelevandos請在上面張貼 – user2121

+0

只需做一個'Project> Clean','無法確定軟件包名稱'就是做與您的運行配置設置,從代碼分開 – Blundell

回答

0

我遵循相同的步驟,user2121,最終試圖降級到Android 1.4.1工作室。與user2121不同,我仍然出現錯誤,但它與1.5.1時不同。

AndroidManifest.xml file not found 

在尋找這個新的錯誤,我發現this StackOverflow的答案,解決了這個問題,我在1.5.1以及1.4.1。