To jest błąd, który dostaję i który jest pozornie nie nadający się do porównania z tym, czego szukałem w StackOverflow.AndroidManifest.xml - określony dla właściwości 'manifest' nie istnieje
Error:A problem was found with the configuration of task ':checkDebugManifest'.
> File '/Users/wasimsandhu/AndroidStudioProjects/Conjugation/src/main/AndroidManifest.xml'
specified for property 'manifest' does not exist.
Otrzymuję ten błąd za każdym razem, gdy odbuduję projekt lub zsynchronizuję pliki Gradle. Próbowałem rozwiązań w różnych innych wątkach tutaj bez skutku.
Oto mój plik app/build.gradle:
apply plugin: 'com.android.application'
android {
signingConfigs {
config {
// removed for this post
}
}
compileSdkVersion 21
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.wsandhu.conjugation"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "0.5"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.+'
compile 'de.cketti.library.changelog:ckchangelog:1.2.1'
compile 'com.nispok:snackbar:2.0.1'
}
A oto plik build.gradle w katalogu:
apply plugin: 'com.android.application'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.13.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
android {
compileSdkVersion 21
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.wsandhu.conjugation"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "0.5"
}
}
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wsandhu.conjugation" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
A oto plik przekładki gradle, w przypadku, który jest ważny:
#Mon Nov 17 20:04:45 PST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-all.zip
Przepraszam z góry za złe formatowanie lub jeśli coś jest niejasne.
'build.gradle' w katalogu głównym nie powinien używać wtyczki' android'. Czy możesz spróbować usunąć wtyczkę i związany z nią kod i zobaczyć, czy coś się zmieni? –