2017-04-26 6 views
0

Keine Ahnung, warum ich diesen Fehler beim Generieren der signierten Apk bekomme. unsignierte apk funktioniert gut.Fehler beim Erzeugen von signierten Apk (unsignierte Apk funktioniert gut)

Mein Projekt gradle Datei

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 
    defaultConfig { 
     applicationId "in.fabits.fabits" 
     minSdkVersion 15 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled true 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 
repositories { 

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


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.2.0' 
    compile 'com.android.support:preference-v7:25.2.0' 
    compile 'com.android.support:design:25.2.0' 
    compile 'com.android.support:cardview-v7:25.2.0' 
    compile 'de.hdodenhof:circleimageview:2.1.0' 
    compile 'com.android.volley:volley:1.0.0' 
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' 
    compile 'com.github.clans:fab:1.6.4' 
    compile 'com.pusher:pusher-java-client:1.4.0' 
    compile 'com.firebase:firebase-jobdispatcher-with-gcm-dep:0.6.0' 
    compile 'com.android.support:support-v4:25.2.0' 
    compile 'com.android.support:support-vector-drawable:25.2.0' 
    compile 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.1.0' 
    compile 'com.daimajia.easing:library:[email protected]' 
    compile 'com.daimajia.androidanimations:library:[email protected]' 
    compile 'com.github.john990:WaveView:v0.9' 
    compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2' 

    testCompile 'junit:junit:4.12' 
} 

Fehler bauen, die ich gradle build

Warning:org.slf4j.LoggerFactory: can't find referenced class org.slf4j.impl.StaticLoggerBinder 
Warning:org.slf4j.MDC: can't find referenced class org.slf4j.impl.StaticMDCBinder 
Warning:org.slf4j.MarkerFactory: can't find referenced class org.slf4j.impl.StaticMarkerBinder 
Warning:there were 11 unresolved references to classes or interfaces. 
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first. 
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. 
> Job failed, see logs for details 

da bin immer ist keine zusätzlichen Codes in proguard-rules.pro

Antwort

1

diese Zeile Setzen Sie in Ihrem proguard-rules.pro Datei.

-dontwarn org.slf4j. **

-dontwarn javax.xml. **

-dontwarn org.apache. **

+0

Meinen Sie in proguard-rules.pro – codenut

+0

Ja Sie haben Recht in proguard-rules.pro –

+0

Wie haben Sie sich entschieden, diese Pakete zu setzen. – codenut

Verwandte Themen