Error Code : 1 on Android 10
See original GitHub issueIssue Type
- Bug Report
- Feature Request
- [x ] Support Question
Description
I have installed the plugin and checked all permissions needed, but still getting error code 1 while using Android 10 on Huawei pro 30
Information
Command or Code
Environment, Platform, Device
Version information
Checklist
- [ x] I searched for already existing GitHub issues about this
- [x ] I updated all Cordova tooling to their most recent version
- [ x] I included all the necessary information above
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:13
Top Results From Across the Web
Error codes | Google Play - Android Developers
Error code Description Your action
NETWORK_ERROR No available network was found. Ask the us...
PLAY_STORE_VERSION_OUTDATED Play Store app needs to be updated. Ask the us...
PLAY_SERVICES_VERSION_OUTDATED...
Read more >How To Fix (Error Code 1) Can't Download App On ... - YouTube
How To Fix ( Error Code 1 ) Can't Download App On Google Playstore In Android Mobile. 545 views 3 years ago. MK ......
Read more >Failed to update device list (error code -1) - Wyze Forum
Hello, I'm having a problem with my Wyze app on my Android phone. I noticed a few days ago that there were no...
Read more >Android Studio: Error Code 1: Gradle: Execution failed for task
The error 1 basically tells you that you have a duplicate file...Rename it or delete it. – Kostas Drak. Dec 10, 2014 at...
Read more >Error Code -1 anybody? - Verizon Community
I have been getting this error code all day. Does not matter what I am doing. Called Verizon and they could not find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(Sorry for any mistake, English is not my official language.)
I have a solution for android 10.
Add to your
<edit-config>
in the config.xml file:<application android:requestLegacyExternalStorage="true" />
Make sure that the build.gradle in the /platforms/android/ folder has the variables configured for sdk api level 29: defaultBuildToolsVersion = “29.0.0” defaultMinSdkVersion = 19 defaultTargetSdkVersion = 29 defaultCompileSdkVersion = 29
Finally, make sure your build is running at sdk’s api level 29.
The error happens due to a lack of android permission on the external storage folder (android 10 updates).
Links that I used as a basis to develop the solution https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df https://github.com/geosparks/geospark-cordova-example/issues/3#issuecomment-558510384
In case you are wondering how to write the full edit-config for @brunocbatista’s fix, here it is:
<platform name="android"> <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge"> <application android:requestLegacyExternalStorage="true" /> </edit-config> </platform>
Also note that you need to add this to the widget tag if it’s not there already: xmlns:android=“http://schemas.android.com/apk/res/android”