簡體   English   中英

無法使用Firebase生成簽名的APK

[英]Unable to generate signed APK with firebase

因此,在將以下兩個Firebase庫添加到項目中之前,我能夠生成簽名的APK:

apply plugin: 'com.google.firebase.firebase-perf'


compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-perf:10.2.6'

這是我嘗試生成簽名APK時遇到的錯誤:

Information:Gradle tasks [:app:assembleRelease]
Warning:com.google.firebase.appindexing.internal.zzd$zzb: can't find referenced method 'android.os.IInterface zzwW()' in program class com.google.firebase.appindexing.internal.zzc
Warning:com.google.firebase.appindexing.internal.zzf: can't find referenced method 'com.google.android.gms.tasks.Task doWrite(com.google.android.gms.internal.zzabn)' in program class com.google.firebase.appindexing.internal.zzf$zza
Warning:there were 2 unresolved references to program class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:java.lang.RuntimeException: Job failed, see logs for details
Error:java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED in 2m 50s
Information:2 errors
Information:4 warnings
Information:See complete output in console

任何幫助表示贊賞,謝謝。

只需將這些行添加到您的proguard文件中。

-dontwarn com.google.firebase.appindexing.internal.**
-keep class com.google.firebase.appindexing.internal.** { *; }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM