得到这种类型的错误并不知道这有什么不对,但得到错误并陷入其中..
每次运行程序时都会给出同样的错误,当我点击错误时会打开这个页面
E:\OmCom2\app\build\intermediates\manifests\full\debug\AndroidManifest.xml
得到错误 Logcat: -
E:\OmCom2\app\build\intermediates\manifests\full\debug\AndroidManifest.xml
Error:(32) No resource identifier found for attribute 'multiDexEnabled' in package 'android'
Error:(32) No resource identifier found for attribute 'multiDexEnabled' in package 'android'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
gradle这个
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "25.0.1"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.Weal.sachin.omcom"
minSdkVersion 15
targetSdkVersion 24
versionCode 2
versionName "1.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.android.support:cardview-v7:25.0.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.android.gms:play-services-location:8.1.0'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.android.support.test.espresso:espresso-core:2.2.2'
compile 'com.android.support:support-v4:25.0.1'
testCompile 'junit:junit:4.12'
}