2017-10-16 81 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中。 不知怎的,我错过了同步他们使用相同的版本..

相关问题