whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

[SOLVED] Proguard Errors Options · View
regulatre
#1 Posted : Thursday, November 11, 2010 12:08:57 AM
Rank: Member

Groups: Registered

Joined: 11/10/2010
Posts: 14
Location: New York
Has anybody else experienced errors with aiCharts with Proguard?

I've already tried adding this to the proguard config with no change in outcome:
-keep public class * extends com.artfulbits.*


Error log from the device:

11-10 17:06:23.708 W/dalvikvm( 9115): threadid=1: thread exiting with uncaught exception (group=0x4001d7e0)
11-10 17:06:23.723 E/AndroidRuntime( 9115): FATAL EXCEPTION: main
11-10 17:06:23.723 E/AndroidRuntime( 9115): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.appname/com.company.appname.gui.Appname}: android.view.InflateException: Binary XML file line #46: Error inflating class com.artfulbits.aiCharts.ChartView
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.os.Handler.dispatchMessage(Handler.java:99)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.os.Looper.loop(Looper.java:123)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at java.lang.reflect.Method.invokeNative(Native Method)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at java.lang.reflect.Method.invoke(Method.java:521)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at dalvik.system.NativeStart.main(Native Method)
11-10 17:06:23.723 E/AndroidRuntime( 9115): Caused by: android.view.InflateException: Binary XML file line #46: Error inflating class com.artfulbits.aiCharts.ChartView
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:702)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.rInflate(LayoutInflater.java:614)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.Activity.setContentView(Activity.java:1647)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at com.company.appname.gui.Appname.onCreate(Unknown Source)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
11-10 17:06:23.723 E/AndroidRuntime( 9115): ... 11 more
11-10 17:06:23.723 E/AndroidRuntime( 9115): Caused by: java.lang.ClassNotFoundException: com.artfulbits.aiCharts.ChartView in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
11-10 17:06:23.723 E/AndroidRuntime( 9115): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.createView(LayoutInflater.java:466)
11-10 17:06:23.723 E/AndroidRuntime( 9115): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
11-10 17:06:23.723 E/AndroidRuntime( 9115): ... 24 more
11-10 17:06:23.731 W/ActivityManager( 7923): Force finishing activity com.company.appname/.gui.Appname
regulatre
#2 Posted : Thursday, November 11, 2010 12:22:39 AM
Rank: Member

Groups: Registered

Joined: 11/10/2010
Posts: 14
Location: New York
Fixed!

I had to add aiCharts library to my proguard library build path in build.xml:

Before:
Code:
<arg value="-libraryjars ${android.jar}"/>


After:
Code:
<arg value="-libraryjars ${android.jar}:libs/com.artfulbits.aiCharts.jar"/>



arnouf
#3 Posted : Monday, June 27, 2011 7:04:43 PM
Rank: Newbie

Groups: Registered

Joined: 9/24/2010
Posts: 9
Location: mougins
Hello,

I've the same error, but how can I do without using Ant and build.xml (I use Eclipse) ?
Thanks for your feedback
Baydalka Volodymyr
#4 Posted : Tuesday, July 05, 2011 2:20:08 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Android project contains proguard.cfg file. Update it with parameters

-libraryjars PATH_TO_AICHARTS_JAR_FILE
-keep public class * extends com.artfulbits.*

Best regards,
Volodymyr Baydalka
Andriod development and support team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.