Export Signed Appliction Package ... Fail
I userd universal-image-loader-1.8.4-with-sources.jar location: ..\libs\universal-image-loader-1.8.4-with-sources.jar
And When I Export Signed Appliction Package ...:
Proguard returned with error code 1. See console
Note: there were 501 duplicate class definitions.
Warning: com.nostra13.universalimageloader.core.decode.ImageDecodingInfo: can't find referenced field 'boolean inPreferQualityOverSpeed' in class android.graphics.BitmapFactory$Options
Warning: com.nostra13.universalimageloader.core.decode.ImageDecodingInfo: can't find referenced field 'android.graphics.Bitmap inBitmap' in class android.graphics.BitmapFactory$Options
Warning: com.nostra13.universalimageloader.core.decode.ImageDecodingInfo: can't find referenced field 'boolean inMutable' in class android.graphics.BitmapFactory$Options
Warning: there were 3 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)
AnyOne Encounter This Problem ??Help
Show your project.properties file.
project.properties file:
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-# Project target.
target=android-8
proguard.config=proguard.cfg
proguard.cfg file:
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-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 <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(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 *;
}
-libraryjars /libs/android-support-v4.jar
-libraryjars /libs/core.jar
-dontwarn android.support.v4.**
-keep class android.support.v4.** { *; }
-keep public class * extends android.support.v4.**
-keep public class * extends android.app.Fragment
And I Tried -libraryjars /libs/universal-image-loader-1.8.4-with-sources.jar
or -dontwarn com.nostra13.universalimageloader.**
or -keep class com.nostra13.universalimageloader.** { *; }
SomeTime Signed Appliction Package Success ,But It not work after Install Apk
How do you Export Signed Appliction Package ??
Google recommends to specify the latest available API level for target parameter.
Try this:
target=android-17
I Try
target=android-17
And" Export Signed Appliction Package" Success .But It not work . Log "Unknown Source" .
Do you have android-17 platform in SDK?
I update android-17 platform . also not work.
I don't know what's the problem. I tried to build apk with Maven, export signed apk in Android Studio - everything is OK.
Did you solve this problem guys? I have a problem in which image loader work properly except one that it doesn't load from a device gallery but everything is working before Proguard.
i have the same problem when i going to build project with ant. who can help me ...