An error occurred while running subprocess native-run
an error occurred while running subprocess cordova stackoverflow
unexpected token in json at position 0 error an error occurred while running subprocess cordova
error an error occurred while running subprocess cordova: cordova build ios exited with exit code 1
an error occurred while running cordova run android (exit code 1).
err_unsuitable_api_installation: no suitable api installation found
an error occurred while running subprocess npm ionic
ionic cordova run android error
I am new to IONIC. I am learning it. I am trying to run the ionic app for android but it gives me below error.
Build is successful but an error occurred while running subprocess native-run. If i run the ionic app for browser, then it's okay. No error happens
Update my IONIC version to 5.4.9 And Platform-Tools to 29.0.5
[native-run] No hardware devices found, attempting emulator... [native-run] Selected emulator emulator-5554 [native-run]Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk... [native-run] ERR_UNKNOWN: Non-zero exit code from adb: 1 [ERROR]An error occurred while running subprocess native-run.
Device offline...There's no device connected to your computer or you have not enabled debugging on your device. If you are not running it on a device run the command ionic cordova run android --emulator Ensure you have an emulator in your android sdk.
Error "ionic cordova run android " after native-run and IONIC 5 , js:259:5) [ERROR] An error occurred while running subprocess native-run. native -run.cmd android --app platforms\android\app\build\outputs\apk\� Hi, I was facing the same issue while running the command - ionic Cordova run android. But it was failing with message - > ERR_NO_TARGET then I start searching on the internet but I didn't get any success.
After a long time able to find the solution:
You need to put the google-services.json file in the root of your project directory.
Hope it will help someone.
bug: Ionic native-run error ERR_UNSUITABLE_API_INSTALLATION , ERR_UNSUITABLE_API_INSTALLATION: No suitable API installation found. [ ERROR] An error occurred while running subprocess native-run. Free source code and tutorials for Software developers and Architects.; Updated: 19 Mar 2019
make sure native-run has access to both Android SDK and AVD Home, it will not run if it can't find both:
$native-run android --sdk-info SDK Location: /home/<username>/Android/Sdk AVD Home: /home/<username>/.android/avd API Level: 28 Packages: Android SDK Platform 28 platforms;android-28 6 (!) Missing Packages: Android Emulator emulator Google Play Intel x86 Atom System Image system-images;android-28;google_apis_playstore;x86 /.+/ Tools: Android SDK Build-Tools 28.0.3 build-tools;28.0.3 28.0.3 Android SDK Platform-Tools platform-tools 29.0.6 Android SDK Tools 26.1.1 tools 26.1.1
If AVD Home is missing you should be able to just create an empty avd folder to make native-run happy:
mkdir -p $HOME/.android/avd
[native-run] ERR_UNKNOWN: Non-zero exit code from adb: 1 , [native-run] ERR_UNKNOWN: Non-zero exit code from adb: 1 [ERROR] An error occurred while running subprocess native-run. #18995. Re-running this command with the --verbose flag may provide more information. Solution - This is due to the latest version of ionic and Cordova in your system but your project does not support this version.
Even I was facing same issue when running the application on emulator. It was working fine when running on Real device. As I read in few place it could be due to the limited storage available in the device. So I cleared the memory of the emulator and it worked fine. Below is the process, how you can remove the memory of emulator.
- Open Android Studio and click on AVD manager.
- Right click on the emulator on which you want to run the application and click on wipe data.
- Now run the application again from Ionic by executing command
ionic cordova run androidthen everything should work fine.
native-run not working from ionic cordova run ios --device � Issue , [ERROR] An error occurred while running subprocess native-run. native-run ios -- app platforms/ios/build/device/ myapp .ipa --device exited� I build an app on Ionic framework, it works on the browser but when I try to compile it on the emulator I have got this error: Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=C:\Users\user\AppData\Local\Android\Sdk (DEPRECATED) Starting a Gradle Daemon (subsequent builds will be faster)
Ionic Error: An error occurred while running subprocess cordova , hello All I am getting following error when i try to run App in ionic emulater android or browser. Also below you can find my ionic Info Same� During installation and adding the Android platform to your Ionic application you may face the following issue in your terminal window: [cordova] Could not find
ionic-team/native-run, js:166:17) [ERROR] An error occurred while running subprocess native-run. native-run ios --app platforms/ios/build/device/App.ipa --device exited� After updating android platform tools to version 29, native-run crashes with exit code 1. Steps to Reproduce: using platform tools v28.0.2 = $ ionic cordova run android the app is successfully installed on device. update platform tools to latest v29. using latest platform tools = $ ionic cordova run android native-run stops with exit code 1
`ionic cordova run android --device` with connected device errors , emulator because --device was specified. [ERROR] An error occurred while running subprocess native-run. native-run.cmd android --app� You have been opted out of telemetry. To change this, run: cordova telemetry on. Using cordova-fetch for cordova-android@^8.0.0 Failed to fetch platform cordova-android@^8.0.0 Probably this is either a connection prob…
- I used command
ionic cordova run android. I am running app in emulator and after that this error occur.
- For me, building a sample app inside Android Studio and running it solved the problem. You can use cordova command once it runs successfully on Android Studio.