2017-10-16 105 views
-1

我得到的錯誤是:(這是一個大的項目)廣東話調試構建應用程序,但它適用於Android 6.0.1

Note: there were 10 references to unknown classes. 
     You should check your configuration for typos. 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass) 
Note: there were 239 unkept descriptor classes in kept class members. 
     You should consider explicitly keeping the mentioned classes 
     (using '-keep'). 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass) 
Note: there were 27 unresolved dynamic references to classes or interfaces. 
     You should check if you need to specify additional program jars. 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) 

Warning: there were 2292 unresolved references to classes or interfaces. 
     You may need to add missing library jars or update their versions. 
     If your code works fine without the missing classes, you can suppress 
     the warnings with '-dontwarn' options. 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) 
Warning: there were 241 unresolved references to program class members. 
     Your input classes appear to be inconsistent. 
     You may need to recompile the code. 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember) 

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first. 
:app:transformClassesAndResourcesWithProguardForDebug FAILED 

FAILURE: Build failed with an exception. 

從搖籃,我看到一隻大輸出日誌知道我必須最終清理proguard-rules.pro,但爲什麼它能在android 6.0.1上運行,而不是在android 4.4.2上運行。日誌結束與「有例外生成失敗」,我嘗試「與--stacktrace運行」,但不能看到異常

+0

你什麼意思通過'在Android 6.0.1工作,而不是在Android 4.4.2'做?如果你的代碼需要SDK 23編譯,並且你將'compileSdkVersion'設置爲更低的值,那麼將會丟失類。問題是,爲什麼要降低'compileSdkVersion'?也許你打算改爲改變'targetSdkVersion'或'minSdkVersion'。 –

+0

我的應用程序的gradle構建有'compileSdkVersion 26,buildToolsVersion 「25.0.3」 的minSdkVersion 16,targetSdkVersion 26' – Erik

+0

我可以在4.4.2在Android 6.0.1棉花糖API 23運行的應用程序,但沒有。 – Erik

回答

0

我解決它。 原因是在我使用play-services 11.4.0和firebase 11.4.2的應用程序構建gradle中。 不知怎的,我錯過了同步他們使用相同的版本..

相關問題