Comments (5)
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.
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.
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.
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.
Thanks nicolabeghin, me too :D
from afilechooser.
Related Issues (20)
- java.lang.IllegalArgumentException: Unknown URI HOT 9
- java.lang.SecurityException: Permission Denial HOT 1
- What is the new file chooser that we should use?
- how to get fileid
- Crash in Android 10
- Hdj
- How to make FileUtils work for camera ?
- Crash when choosing pdf file in android 11
- With USB it return null instead of path. HOT 1
- Can not get file path from FileProvider URI HOT 6
- is it possible to set default folder in afilechooser?
- java.lang.String java.io.File.getName() throws Null pointer
- Include in React Native HOT 1
- Recent files not working
- Not Working for Google Drive Uri HOT 4
- Result code always -1 HOT 1
- Select File - only music or gallery, I need txts
- Please add or link to this guide HOT 1
- Path return null when selecting Video From Google Photos app
- java.lang.NumberFormatException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afilechooser.