简体   繁体   English

Proguard找不到引用的com.google.ads.internal.state.AdState类

[英]Proguard can't find referenced class com.google.ads.internal.state.AdState

Ok guys so this becoming extremely annoying trying to get my project to work when exporting/ 好吧,所以这变得非常烦人,试图让我的项目在出口时工作/

Progaurd keeps giving me this error: Progaurd一直给我这个错误:

Proguard returned with error code 1. See console

Here is the full error i get in the console: 这是我在控制台中得到的完整错误:

 Warning: com.google.ads.m: can't find referenced class com.google.ads.internal.state.AdState
[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu] Warning: com.google.ads.m: can't find referenced class com.google.ads.internal.state.AdState

[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]       You should check if you need to specify additional program jars.

[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu] Warning: there were 2 unresolved references to classes or interfaces.

[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]          You may need to specify additional library jars (using '-libraryjars').

[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu] java.io.IOException: Please correct the above warnings first.

[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]     at proguard.Initializer.execute(Initializer.java:321)
[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]     at proguard.ProGuard.initialize(ProGuard.java:211)
[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]     at proguard.ProGuard.execute(ProGuard.java:86)
[2012-10-23 18:14:20 - com.fttech.monkey_toss.Menu]     at proguard.ProGuard.main(ProGuard.java:492)

Does anyone know how to solve this?? 有谁知道如何解决这个问题?

EDIT: 编辑:

Here is my proguarg-project.txt 这是我的proguarg-project.txt

# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
    #
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
#   http://developer.android.com/guide/deve ... guard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}
#admob, uncomment if using:
-keep public class com.admob.android.ads.** {*;}

# google analytics, uncomment if using:
#-keep class com.google.android.apps.analytics.PipelinedRequester$Callbacks

# google inapp billing, uncomment if using:
#-keep class com.android.vending.billing.**

# Box2D
-keep public class com.badlogic.** {*;} 

Edit: 编辑:

Here is my new error: 这是我的新错误:

    java.io.IOException: Can't read [C:\Users\a\workspace2\AndEngine\bin\andengine.jar] (Can't process class [org/andengine/ui/activity/SimpleBaseGameActivity.class] (Unexpected end of ZLIB input stream))
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.InputReader.readInput(InputReader.java:230)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.InputReader.readInput(InputReader.java:200)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.InputReader.readInput(InputReader.java:178)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.InputReader.execute(InputReader.java:78)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.ProGuard.readInput(ProGuard.java:196)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.ProGuard.execute(ProGuard.java:78)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.ProGuard.main(ProGuard.java:492)
[2012-10-23 23:47:02 - Monkey Toss_New] Caused by: java.io.IOException: Can't process class [org/andengine/ui/activity/SimpleBaseGameActivity.class] (Unexpected end of ZLIB input stream)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.ClassReader.read(ClassReader.java:112)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.JarReader.read(JarReader.java:65)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.InputReader.readInput(InputReader.java:226)
[2012-10-23 23:47:02 - Monkey Toss_New]     ... 6 more
[2012-10-23 23:47:02 - Monkey Toss_New] Caused by: java.lang.RuntimeException: Unexpected end of ZLIB input stream
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.classfile.io.RuntimeDataInput.readInt(RuntimeDataInput.java:136)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:77)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
[2012-10-23 23:47:02 - Monkey Toss_New]     at proguard.io.ClassReader.read(ClassReader.java:91)
[2012-10-23 23:47:02 - Monkey Toss_New]     ... 11 more

This problem started with AdMob SDK 6.1.0 and 6.2.1 (for Android). 此问题始于AdMob SDK 6.1.0和6.2.1(适用于Android)。 To fix the error, add this to your proguard.cfg file: 要修复错误,请将其添加到proguard.cfg文件中:

-dontwarn com.google.ads.**

Source: https://groups.google.com/d/msg/google-admob-ads-sdk/JllLSIXWtBk/ioXzTWKoYgMJ 资料来源: https//groups.google.com/d/msg/google-admob-ads-sdk/JllLSIXWtBk/ioXzTWKoYgMJ

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Proguard的类中找不到引用的方法 - can't find referenced method in class with Proguard Android ProGuard:找不到引用的类 - Android ProGuard: can't find referenced class Proguard android找不到引用的类 - Proguard android can't find referenced class Proguard:找不到引用的类 - Proguard: can't find referenced class Proguard警告:找不到引用的类scala。* - Proguard warnings: can't find referenced class scala.* 找不到方法com.xxx.xxx.MainActivity.onCreate引用的类“ com.google.android.gms.ads.AdView” - Could not find class 'com.google.android.gms.ads.AdView', referenced from method com.xxx.xxx.MainActivity.onCreate eclipse中的facebook NativeAd找不到从方法com.facebook.ads.MediaView引用的类'com.facebook.ads.internal.view.hscroll.c' - facebook NativeAd in eclipse Could not find class 'com.facebook.ads.internal.view.hscroll.c', referenced from method com.facebook.ads.MediaView 在Gradle中使用Proguard - 找不到引用的类java.lang.String - Using Proguard in Gradle - can't find referenced class java.lang.String java.lang.ClassNotFoundException:未找到类“com.google.android.gms.ads.MobileAdsInitProvider” - java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" ClassNotFoundException:未找到类“com.google.android.gms.ads.AdView” - ClassNotFoundException: Didn't find class “com.google.android.gms.ads.AdView”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM