2016-04-16 6 views
2

Ich entwickle eine App, die einige Probleme haben, während Gradle Sync.Android Studio 2.0 Gradle Project build kein Erfolg mit gradle: 2.0.0

Hier ist meine Gradle Log.

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 
Error:(org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence$1) that doesn't come with an 
Error:associated EnclosingMethod attribute. This class was probably produced by a`enter code here` 
Error:compiler that did not target the modern .class file format. The recommended 
Error:solution is to recompile the class from source, using an up-to-date compiler 
Error:and without specifying any "-target" type options. The consequence of ignoring 
Error:this warning is that reflective operations on this class will incorrectly 
Error:indicate that it is *not* an inner class. 
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 
Error:(org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence$2) that doesn't come with an 
Error:associated EnclosingMethod attribute. This class was probably produced by a 
Error:compiler that did not target the modern .class file format. The recommended 
Error:solution is to recompile the class from source, using an up-to-date compiler 
Error:and without specifying any "-target" type options. The consequence of ignoring 
Error:this warning is that reflective operations on this class will incorrectly 
Error:indicate that it is *not* an inner class. 

Hier ist meine Build.Gradle.

apply plugin: 'com.android.application' 
apply plugin: 'android-apt' 
def AAVersion = '3.3.2' 

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 
    defaultConfig { 
     applicationId "com.mike.shopass" 
     minSdkVersion 14 
     targetSdkVersion 22 
     versionCode 12 
     versionName '1.7.0' 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    productFlavors { 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    apt "org.androidannotations:androidannotations:$AAVersion" 
    compile "org.androidannotations:androidannotations-api:$AAVersion" 
    compile 'com.android.support:appcompat-v7:23.2.0' 
    compile 'de.greenrobot:eventbus:2.4.0' 
    compile files('libs/afinal.jar') 
    compile files('libs/android-support-v4.jar') 
    compile files('libs/base64 1.1.jar') 
    compile files('libs/com.baidu.speechsynthesizer_1.1.1.jar') 
    compile files('libs/galaxy_lite.jar') 
    compile files('libs/gson-2.2.4.jar') 
    compile files('libs/nineoldandroids-2.4.0.jar') 
    compile files('libs/slidingmenu.jar') 
    compile files('libs/swipeistview.jar') 
    compile files('libs/umeng-analytics-v5.2.4.jar') 
    compile files('libs/universal-image-loader-1.9.3-with-sources.jar') 
    compile files('libs/zxing.jar') 
    compile files('libs/org.eclipse.paho.android.service-1.0.3.jar') 
    compile files('libs/org.eclipse.paho.client.mqttv3-1.0.3.jar') 
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' 
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' 
    // compile 'com.alipay.euler:andfix:[email protected]' 
    compile 'me.grantland:autofittextview:0.2.+' 
    // compile 'com.yalantis:ucrop:1.3.+' 
    compile 'com.orhanobut:logger:1.3' 
} 


apt { 


    arguments { 
     androidManifestFile variant.outputs[0].processResources.manifestFile 

     resourcePackageName 'com.mike.shopass' 

    } 
} 

buildscript { 
    repositories { 
     mavenCentral() 
    } 
    dependencies { 
     // replace with the current version of the Android plugin 
     classpath 'com.android.tools.build:gradle:2.0.0' 
     // replace with the current version of the android-apt plugin 
     classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' 
    } 
} 



repositories { 
    mavenCentral() 
    mavenLocal() 
} 
+0

Bitte seien Sie genau, was Sie fragen, wenn Sie den Titel geben. –

+0

Stört Sie das, um Ihre App zu starten? Bis Sie die genaue Lösung gefunden haben, können Sie in Ihrem App-Gadget lintOptions { abortOnError false } hinzufügen. – Adarsh

Antwort

0

Android Studio aktualisieren und die folgenden Parameter aktualisieren. Lassen Sie mich wissen, tschüss

android { 
    compileSdkVersion 24 
    buildToolsVersion '24.0.0' 

compile('org.eclipse.paho:org.eclipse.paho.android.service:1.0.2') { 
     exclude module: 'support-v4' 
    } 
    compile 'com.android.support:appcompat-v7:24.0.0' 
    compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2' 
+0

Sie sollten Ihre Antwort ausführlich erklären. – cnorthfield

Verwandte Themen