In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Today, I will talk to you about how to solve android code confusion and error reporting java.io.IOException: Please correct the above, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Android Code obfuscation error: java.io.IOException:Please correct the above warnings first
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyAdapter
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyEvent
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.Dialog
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyAdapter
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyEvent
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.Dialog
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyEvent
[2012-06-01 14:06:03-geoTest6.3] Warning: org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1: can't find referenced class java.awt.event.KeyEvent
[2012-06-01 14:06:03-geoTest6.3] You should check if you need to specify additional program jars.
[2012-06-01 14:06:03-geoTest6.3] Warning: there were 1773 unresolved references to classes or interfaces.
[2012-06-01 14:06:03-geoTest6.3] You may need to specify additional libraryjars (using'- libraryjars')
[2012-06-01 14:06:03-geoTest6.3] or perhaps the'- dontskipnonpubliclibraryclasses' option.
[2012-06-01 14:06:03-geoTest6.3] Warning: there were 1 instances of library classes depending on program classes.
[2012-06-01 14:06:03-geoTest6.3] You must avoid such dependencies, since the program classes will
[2012-06-01 14:06:03-geoTest6.3] be processed, while the library classes will remain unchanged.
[2012-06-01 14:06:03-geoTest6.3] java.io.IOException: Please correct the above warnings first.
[2012-06-01 14:06:03-geoTest6.3] at proguard.Initializer.execute (Initializer.java:308)
[2012-06-01 14:06:03-geoTest6.3] at proguard.ProGuard.initialize (ProGuard.java:210)
[2012-06-01 14:06:03-geoTest6.3] at proguard.ProGuard.execute (ProGuard.java:85)
[2012-06-01 14:06:03-geoTest6.3] at proguard.ProGuard.main (ProGuard.java:499)
[2012-06-01 14:12:33-geoTest6.3] Proguard returned with error code 1. See console
Solution: because of the tripartite jar package, we need to add "- dontwarn" to the proguard.cfg
As follows:
Proguard.cfg all configuration
-dontwarn
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations! codeUniverse simplificationplicationlapse.
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
Native
}
-keepclasseswithmembers class * {
Public (android.content.Context, android.util.AttributeSet)
}
-keepclasseswithmembers class * {
Public (android.content.Context, android.util.AttributeSet, int)
}
-keepclassmembers class * extends android.app.Activity {
Public void * (android.view.View)
}
-keepclassmembers enum * {
Public static * [] values ()
Public static * * valueOf (java.lang.String)
}
-keep class * implements android.os.Parcelable {
Public static final android.os.Parcelable$Creator *
}
Solvable!
After reading the above, do you have any further understanding of how to solve android code confusion and error reporting java.io.IOException: Please correct the above? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.