Android-Proguard和Google Play服务的应用导出错误

弗拉基米尔·加兹巴罗夫(Vladimir Gazbarov)

我已将最新的Google Play服务添加到该项目中,现在proguard给了我很多警告:

[2014-07-31 17:21:50 - MyApp] Proguard returned with error code 1. See console
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced method 'void setShowsDialog(boolean)' in class com.google.android.gms.common.SupportErrorDialogFragment
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.google.android.gms.common.api.d
[2014-07-31 17:21:50 - MyApp]       You should check if you need to specify additional program jars.
[2014-07-31 17:21:50 - MyApp] Warning: there were 9 unresolved references to classes or interfaces.
[2014-07-31 17:21:50 - MyApp]          You may need to specify additional library jars (using '-libraryjars').
[2014-07-31 17:21:50 - MyApp] Warning: there were 2 unresolved references to program class members.
[2014-07-31 17:21:50 - MyApp]          Your input classes appear to be inconsistent.
[2014-07-31 17:21:50 - MyApp]          You may need to recompile them and try again.
[2014-07-31 17:21:50 - MyApp]          Alternatively, you may have to specify the option 
[2014-07-31 17:21:50 - MyApp]          '-dontskipnonpubliclibraryclassmembers'.
[2014-07-31 17:21:50 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-07-31 17:21:50 - MyApp]   at proguard.Initializer.execute(Initializer.java:321)
[2014-07-31 17:21:50 - MyApp]   at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-07-31 17:21:50 - MyApp]   at proguard.ProGuard.execute(ProGuard.java:86)
[2014-07-31 17:21:50 - MyApp]   at proguard.ProGuard.main(ProGuard.java:492)

我尝试添加

-dontwarn com.google.android.gms.*
-keep class android.support.v4.** { *; }

到proguard配置文件,但没有运气。我在我的应用中定位的是Android 17(4.2.2),而最低SDK版本是8(我认为是2.2)。

解决该错误的任何帮助将不胜感激。

膝盖

确保已使用Android 4.4.2设置项目,并且具有“ include android- support-v13.jar”。我有同样的问题,但现在已解决。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Android-Proguard和Google Play服务的应用导出错误

来自分类Dev

使用LibGDX和ProGuard导出Android APK时出错

来自分类Dev

Android错误:Google Play服务版本

来自分类Dev

Android错误:Google Play服务版本

来自分类Dev

Android Google Play服务和IntentService

来自分类Dev

在Google Play上加载Android应用时出错

来自分类Dev

在Google Play上加载Android应用时出错

来自分类Dev

Android ACRA和ProGuard

来自分类Dev

Android数据绑定和Guava之间的冲突导致ProGuard错误

来自分类Dev

Proguard和Google Analytics(分析)导出APK问题

来自分类Dev

如何在Android应用中管理Google Play服务更新?

来自分类Dev

在Android应用中可选编译Google Play服务

来自分类Dev

使用导出的签名应用程序android构建apk时出现Proguard错误

来自分类Dev

Android:什么是Proguard和ProGuard映射

来自分类Dev

Android:在Android模拟器中安装Google Play服务时出错?

来自分类Dev

Proguard和Android中的R

来自分类Dev

Google Play游戏服务多人iOS和Android

来自分类Dev

Android proguard Gson错误

来自分类Dev

Android proguard Gson错误

来自分类Dev

Eclipse中的Proguard导出错误

来自分类Dev

Eclipse中的Proguard导出错误

来自分类Dev

Android Google Play服务库

来自分类Dev

使用Google Play服务构建Xamarin.Android项目时出错

来自分类Dev

Proguard和改造错误

来自分类Dev

Android日历服务和应用

来自分类Dev

Android SDK中Proguard和Consumer Proguard的问题29

来自分类Dev

通过Android-Studio和“新” Google Play服务SDK实施Google广告

来自分类Dev

如何使用不存在或过时的Google Play服务测试android应用?

来自分类Dev

对需要最新Google Play服务的应用中的Android 4.3 Web视图进行故障排除

Related 相关文章

热门标签

归档