I'm using Android Studio 0.4.5 and I have trouble troublesome.
What do I do I get this error:
Gradle 'MyApp' project failed to refresh: Scripts error, was unsupported Gradle DSL method ' Android () '!
There are four modules in my solution here is my root build.graddle
:
buildscript {repositories {mavenCentral ()} dependence {classpath 'com.android.tools.build:gradle:.8.+'}} Android {{packagingOptions out 'META-INF / license.txt'}} {allprojects treasures {mavenCentral ()}} and others (I removed dependency for simplicity)
Module 1 Apply the plugin: 'Android "Bildskript {repositories {mavenCentral ()} dependence {classpath 'com.android.tools.build: Gradle: 0.8 +'}} {buildscript treasures {mavenCentral ()} {dependence classpath 'com.android.tools.build:gradle: 0.8. + '}} {A Droid compileSdkVersion 19 buildToolsVersion "19.0.1" defaultConfig {minSdkVersion. 9 Target SdkVersion 19} buildTypes {release {runProguard false proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt'), 'ProGuard-rules.txt'}}}
Module 2 < / Strong>
Applicable plugin: 'android-library' android {compileSdkVersion 18 buildToolsVersion "19.0.1" defaultConfig {minSdkVersion 8 targetSdkVersion 17} release {runProguard false proguardFiles getDefaultProguardFile ('ProGuard-android. Txt '),' ProGuard-rules.txt '}}
Module 3 plugin:' android-library '
< code> android {compileSdkVersion 18 buildToolsVersion "19.0.1" defaultConfig {minSdkVersion 8 targetSdkVersion 17} release {runProguard false proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt'), 'ProGuard-rules.txt'}}
< strong> 4 modules
Apply plugin: 'android-library' android {compileSdkVersion 17 buildToolsVersion "19.0.1" defaultConfig {minSdkVersion 9 targetSdkVersion 17} release {runProguard false proguardFiles getDefaultProguardFile ('ProGuard-android.txt'), 'ProGuard-rules.txt'}}
Sorry to make this so long, but I'm frustrated here: (
The main reason was:
android {packaging option {'meta- INF / LICNAPTP '}}
In the root build.product
Comments
Post a Comment