【问题标题】:Proguard issue when enabling it启用时的 Proguard 问题
【发布时间】:2015-10-24 17:35:12
【问题描述】:
Proguard  returned with error code 1. See console  
Warning: com.google.android.gms.ads.formats.NativeAdView: can't find referenced       method 'FrameLayout(android.content.Context,android.util.AttributeSet,int,int)'   in class android.widget.FrameLayout  
     You should check if you need to specify additional program jars.  
     Warning: there were 1 unresolved references to program class members.  
     Your input classes appear to be inconsistent.  
     You may need to recompile them and try again.  
     Alternatively, you may have to specify the option   
     '-dontskipnonpubliclibraryclassmembers'.  
    java.io.IOException: Please correct the above warnings first.  
    at proguard.Initializer.execute(Initializer.java:321)  
    at proguard.ProGuard.initialize(ProGuard.java:211)  
    at proguard.ProGuard.execute(ProGuard.java:86)  
    at proguard.ProGuard.main(ProGuard.java:492)  

【问题讨论】:

  • 我遇到了同样的问题。你找到解决办法了吗?

标签: android proguard


【解决方案1】:

我将项目构建目标从 Android 4.4.2 更改为 Android 5.1.1,然后问题不再发生。

希望对你有帮助。

【讨论】:

  • 我丢失了那个但得到了这个:com.google.android.gms.internal.zzhu: 找不到引用的类 android.security.NetworkSecurityPolicy
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-17
  • 1970-01-01
  • 2018-04-21
相关资源
最近更新 更多