android-permission-manager | small project shows a clean and simplified approach
kandi X-RAY | android-permission-manager Summary
kandi X-RAY | android-permission-manager Summary
This small project shows a clean and simplified approach for the recommended workflow for requesting permissions in Android.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of android-permission-manager
android-permission-manager Key Features
android-permission-manager Examples and Code Snippets
Community Discussions
Trending Discussions on android-permission-manager
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-permission-manager
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