android-prefs | Android preferences for WINNERS | Android library
kandi X-RAY | android-prefs Summary
kandi X-RAY | android-prefs Summary
Android preferences for WINNERS!. ![Be a winner!] /illus.jpg?raw=true "Be a winner!"). This little tool generates wrappers for your SharedPreferences, so you can benefit from compile time verification and code completion in your IDE. You also get nice singletons for free.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process a set of round annotations
- Returns a string representation of the given variable element
- Checks if is allowed type
- Unescapes a string
- Unregister a listener for a shared preference change
- Gets all attributes
- Retrieve a boolean value and return it as a boolean
- Get a float value
- Returns true if the map contains a key
- Returns the long value for the given key
- Get a string or a default value
- Get a set of String values as a Set
- Registers a listener for when the shared preferences are changed
- Removes the given key from this editor
- Get uppercase field name
- Retrieve an int value
- Clears this editor
- Puts a set of String values into the editor
- Puts a string into the editor
- Puts a long value into the editor
- Puts an int value into the editor
- Puts a float value into the editor
- Puts a boolean value into the editor
android-prefs Key Features
android-prefs Examples and Code Snippets
Community Discussions
Trending Discussions on android-prefs
QUESTION
Before asking this question I searched for an answer
In short: problem appears with the latest version of Gradle plugin for Android Studio version 3.0.0.
If I use previous version of Gradle plugin (2.3.3) Studio builds .apk without problem/
Error text:
Error:Execution failed for task ':stockManagment:transformClassesWithStackFramesFixerForNextDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: java.util.zip.ZipException: duplicate entry: META-INF/
All solutions found at SO and other sites recommend using 'exclude', but these problems usually appear with 'META-INF/somefile.txt' , not 'META-INF/' directory itself.
I can't exclude whole 'META-INF/' directory, but I exclude common files inside this dir (licence, dependencies, etc.).
Here are my build.gradle files.
...ANSWER
Answered 2017-Nov-27 at 12:35The problem was with Apache POI library which was included as .jar file from /libs directory. This .jar contained empty /META-INF directory which was the cause of the problem.
Deleting this empty directory from .jar file resolved the problem. If /META-INF is not empty it also works ok. With Gradle plugin 2.3.3 building .apk works smoothly even with empty /META_INF directory.
So, the combination of Gradle plugin 3.0.0 and empty /META_INF directory in .jar creates the problem.
UPDATE 27.11.2017 This bug has been fixed in the current version
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-prefs
You can use android-prefs like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-prefs component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page