question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Code : 1 on Android 10

See original GitHub issue

Issue 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:open
  • Created 4 years ago
  • Reactions:6
  • Comments:13

github_iconTop GitHub Comments

10reactions
brunocbatistacommented, Jun 1, 2020

(Sorry for any mistake, English is not my official language.)

I have a solution for android 10.

  1. Add to your <edit-config> in the config.xml file: <application android:requestLegacyExternalStorage="true" />

  2. 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

  3. 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

1reaction
scottopoliscommented, Jun 30, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found