2016-06-05 3 views
4

jedes Mal, wenn ich meine App ausführen oder debuggen will, baut immer mit Fehlern grapple aber erfolgreich von studio.aber wenn ich selbst generieren will, ist es fehlgeschlagen, so seltsam.Gradle Build fertig mit 520 Fehler (s), aber APK erfolgreich generiert

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "com.jinjiang.computer.tianyi" 
     minSdkVersion 18 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

     repositories { 
     maven { url "https://jitpack.io" } 
    } 

    dependencies { 
     compile fileTree(include: ['*.jar'], dir: 'libs') 
     testCompile 'junit:junit:4.12' 
     compile files('F:/AndroidStudioProjects/TianYi/libs/Msc.jar') 
     compile files('F:/AndroidStudioProjects/TianYi/libs/Sunflower.jar') 
     compile 'com.android.support:appcompat-v7:23.3.0' 
     compile 'com.android.support:design:23.3.0' 
     compile 'com.android.support:support-v4:23.3.0' 
     compile 'org.apache.poi:poi:3.14' 
     compile 'com.github.PhilJay:MPAndroidChart:v2.0.8' 
    } 


Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.iflytek.cloud.a) 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.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.iflytek.cloud.b) 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.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

...


Error:(com.iflytek.thridparty.T) 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.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.iflytek.thridparty.aA) 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

usw.

+0

Sie sind nicht mit Fehlern, Sie‘ Re mit Warnungen – Mdlc

+0

Worum geht es bei den Warnungen? –

Antwort

3

Vor einiger Zeit habe ich von Thesen Warnungen loszuwerden, indem die folgenden Zeilen zu meinem proguard-rules.pro Datei:

-keepattributes InnerClasses,EnclosingMethod 
-dontoptimize 
Verwandte Themen