-2
在Android Studio中下面的代碼顯示了我安卓元素活動正在這裏允許
「元素的活動正在這裏不允許」
當我將鼠標懸停在活動標籤和應用程序不啓動默認的活動,我嘗試了乾淨的項目,重建項目,然後重新啓動Android Studio,我試圖使無效兌換/重新啓動,並且問題仍然存在,如何解決這個問題?
<activit
android:name=".MainActivity"
android:configChanges="orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activit>
的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.blabla.testapp1"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.0'
}
你的logcat在哪裏?發佈 –
確保''元素是清單中''元素的子元素。還檢查你的拼寫,你的發佈代碼有''而不是'' –
keno
@keno偉大的眼睛,謝謝你,錯過了「y」是警告的原因。 –