Android Proguard error with Google Drive API -


i stated using google drive api in project.. every thing works fine if run project on phone using debug keystore.

when try create signed apk, proguard throws me following error

[2013-10-07 12:59:01 - project] proguard returned error code 1. see console [2013-10-07 12:59:01 - project] proguard returned error code 1. see console [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.dataproxy: can't find superclass or interface java.awt.datatransfer.transferable [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.nativeclipboard: can't find superclass or interface java.awt.datatransfer.clipboard [2013-10-07 12:59:01 - project] warning: javax.activation.commandinfo: can't find referenced class java.beans.beans [2013-10-07 12:59:01 - project] warning: javax.activation.commandinfo: can't find referenced class java.beans.beans [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.contextstorage: can't find referenced class java.awt.toolkit [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.contextstorage: can't find referenced class java.awt.graphicsenvironment [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.contextstorage: can't find referenced class java.awt.graphicsenvironment [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.dtk: can't find referenced class java.awt.datatransfer.dataflavor [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.dtk: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.dtk: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.dataflavor [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.dataflavor [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.dataflavor [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.systemflavormap [2013-10-07 12:59:01 - project] warning: org.apache.harmony.awt.datatransfer.textflavor: can't find referenced class java.awt.datatransfer.dataflavor [2013-10-07 12:59:01 - project]       should check if need specify additional program jars. [2013-10-07 12:59:01 - project] warning: there 224 unresolved references classes or interfaces. [2013-10-07 12:59:01 - project]          may need specify additional library jars (using '-libraryjars'). [2013-10-07 12:59:01 - project] java.io.ioexception: please correct above warnings first. [2013-10-07 12:59:01 - project]  @ proguard.initializer.execute(initializer.java:321) [2013-10-07 12:59:01 - project]  @ proguard.proguard.initialize(proguard.java:211) [2013-10-07 12:59:01 - project]  @ proguard.proguard.execute(proguard.java:86) [2013-10-07 12:59:01 - project]  @ proguard.proguard.main(proguard.java:492) 

i tried adding following proguard-project.txt

-dontwarn org.apache.harmony.** -dontwarn javax.activation.** 

if add above, apk created, app crashes on launch

can please me!

you're referencing classes aren't part of android runtime. either remove classes referencing them, or if want suppress warnings, try adding

-dontwarn java.awt.**,java.beans.** proguard config.

additional info in proguard troubleshooting guide.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -