Code Monkey home page Code Monkey logo

Comments (5)

jaibatrik avatar jaibatrik commented on July 16, 2024

I also observed that the issue happens with optimization options in place. If you don't put optimization options, the APK is exported.

from afilechooser.

sevar83 avatar sevar83 commented on July 16, 2024

Check if your ProGuard is the latest version. "Dalvik error 1" happens after update of ADT. It's stupid but it always rewrites your ProGuard with some really ancient version that gives this problem.

BTW. I have a similar problem - "Proguard returned with error code 1. See console"

[2014-04-07 13:27:35 - geocoord-app] Proguard returned with error code 1. See console
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find superclass or interface android.provider.DocumentsProvider
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced class android.provider.DocumentsProvider
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced class android.provider.DocumentsProvider
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced method 'android.database.MatrixCursor$RowBuilder add(java.lang.String,java.lang.Object)' in library class android.database.MatrixCursor$RowBuilder
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced method 'android.content.Context getContext()' in program class com.ianhanniballake.localstorage.LocalStorageProvider
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-04-07 13:27:35 - geocoord-app] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-04-07 13:27:35 - geocoord-app] Warning: there were 6 unresolved references to classes or interfaces.
[2014-04-07 13:27:35 - geocoord-app] You may need to add missing library jars or update their versions.
[2014-04-07 13:27:35 - geocoord-app] If your code works fine without the missing classes, you can suppress
[2014-04-07 13:27:35 - geocoord-app] the warnings with '-dontwarn' options.
2014-04-07 13:27:35 - geocoord-app
[2014-04-07 13:27:35 - geocoord-app] Warning: there were 1 unresolved references to program class members.
[2014-04-07 13:27:35 - geocoord-app] Your input classes appear to be inconsistent.
[2014-04-07 13:27:35 - geocoord-app] You may need to recompile the code.
2014-04-07 13:27:35 - geocoord-app
[2014-04-07 13:27:35 - geocoord-app] Warning: there were 1 unresolved references to library class members.
[2014-04-07 13:27:35 - geocoord-app] You probably need to update the library versions.
2014-04-07 13:27:35 - geocoord-app
[2014-04-07 13:27:35 - geocoord-app] java.io.IOException: Please correct the above warnings first.
[2014-04-07 13:27:35 - geocoord-app] at proguard.Initializer.execute(Initializer.java:369)
[2014-04-07 13:27:35 - geocoord-app] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-04-07 13:27:35 - geocoord-app] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-04-07 13:27:35 - geocoord-app] at proguard.ProGuard.main(ProGuard.java:483)

from afilechooser.

nicolabeghin avatar nicolabeghin commented on July 16, 2024

I got the same error. Any hint? I updated to latest ADT and pulled the latest code. Had no problem before using LocalStorageProvider

[2014-05-04 23:10:28 - MyApp] Proguard returned with error code 1. See console
[2014-05-04 23:10:28 - MyApp] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find superclass or interface android.provider.DocumentsProvider
[2014-05-04 23:10:28 - MyApp] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced class android.provider.DocumentsProvider
[2014-05-04 23:10:28 - MyApp] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced class android.provider.DocumentsProvider
[2014-05-04 23:10:28 - MyApp] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced method 'android.database.MatrixCursor$RowBuilder add(java.lang.String,java.lang.Object)' in class android.database.MatrixCursor$RowBuilder
[2014-05-04 23:10:28 - MyApp] Warning: com.ianhanniballake.localstorage.LocalStorageProvider: can't find referenced method 'android.content.Context getContext()' in class com.ianhanniballake.localstorage.LocalStorageProvider
[2014-05-04 23:10:28 - MyApp] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-05-04 23:10:28 - MyApp] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-05-04 23:10:28 - MyApp] Warning: com.ipaulpro.afilechooser.utils.FileUtils: can't find referenced class android.provider.DocumentsContract
[2014-05-04 23:10:28 - MyApp]       You should check if you need to specify additional program jars.
[2014-05-04 23:10:28 - MyApp] Warning: there were 6 unresolved references to classes or interfaces.
[2014-05-04 23:10:28 - MyApp]          You may need to specify additional library jars (using '-libraryjars').
[2014-05-04 23:10:28 - MyApp] Warning: there were 2 unresolved references to program class members.
[2014-05-04 23:10:28 - MyApp]          Your input classes appear to be inconsistent.
[2014-05-04 23:10:28 - MyApp]          You may need to recompile them and try again.
[2014-05-04 23:10:28 - MyApp]          Alternatively, you may have to specify the option 
[2014-05-04 23:10:28 - MyApp]          '-dontskipnonpubliclibraryclassmembers'.
[2014-05-04 23:10:28 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-05-04 23:10:28 - MyApp]   at proguard.Initializer.execute(Initializer.java:321)
[2014-05-04 23:10:28 - MyApp]   at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-05-04 23:10:28 - MyApp]   at proguard.ProGuard.execute(ProGuard.java:86)
[2014-05-04 23:10:28 - MyApp]   at proguard.ProGuard.main(ProGuard.java:492)

from afilechooser.

nicolabeghin avatar nicolabeghin commented on July 16, 2024

So stupid of me. Manifest.xml was correctly updated to use API level 19, while in Eclipse's project.properties it was still to 18. Solved.

from afilechooser.

khanhqhi avatar khanhqhi commented on July 16, 2024

Thanks nicolabeghin, me too :D

from afilechooser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.