Android Gradle Build Failed (Release Build type)



我已经在构建中将minifyEnabled更改为true。gradle文件。然后我遇到了问题

 Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
    :app:transformClassesAndResourcesWithProguardForRelease FAILED
    Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
    > java.io.IOException: Please correct the above warnings first.

compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/YouTubeAndroidPlayerApi.jar')
debugCompile project(path: ':djlibrary')
releaseCompile project(path: ':djlibrary')
compile 'com.android.support:cardview-v7:24.1.1'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
compile 'com.google.firebase:firebase-database:9.2.1'
compile 'com.google.firebase:firebase-messaging:9.2.1'
compile 'com.google.firebase:firebase-auth:9.2.1'
compile 'com.google.android.gms:play-services-gcm:9.2.1'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:support-v4:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.1'

proguard有一些问题。请帮助我完成这件事

当使用Firebase Authenticationcompile 'com.google.firebase:firebase-auth:9.2.1'尝试添加以下标志到您的proguard-rules。正方观点:

-keepattributes Signature
-keepattributes *Annotation*

阅读更多在设置Firebase认证为Android。

对于Firebase Realtime Database with compile 'com.google.firebase:firebase-database:9.2.1',您需要考虑您的模型对象在混淆后将如何序列化和反序列化。有关详细信息,请参阅设置Android的Firebase实时数据库。

相关内容

  • 没有找到相关文章

最新更新