why cordova_not_available when use cordova run android -l in my ionic3 project
but when use cordova run android,cordova is availabl;
i want to debugging my ionic3 project on --liveload and cordova is available;
how can i do
What command exactly are you running on the command line?
What is your ionic info
output on the command line?
running android is sucessful but it will catch an error cordova_not_available when i use concrete corodova-plugin in my app
i tried but it is the same effect
Please answer my questions. I am not interested in any other information until you have done so.
ionic cordova run android -l
output successful
This still didn’t answer my second question. You should run ionic info
on the command line and then copy the output here for us to read.
Development server running
Local: http://localhost:8100
External: http://11.0.2.18:8100
cordova run android
ANDROID_HOME=F:\android-sdk-windows
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31
Subproject Path: CordovaLib
NDK is missing a “platforms” directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.
It is currently set to F:\android-sdk-windows\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or l
ocal.properties to remove this warning.
The Task.leftShift(Closure) method has been deprecated and is scheduled to
be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_a3e38n22jfppdixvyyhpa4me.run(C:\Users\Admin\Desktop\ionic
ionic-platform\platforms\android\build.gradle:139)
NDK is missing a “platforms” directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.
It is currently set to F:\android-sdk-windows\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or l
ocal.properties to remove this warning.
ok?
No. Read my previous posts again.
@ionic/cli-utils : 1.8.0
ionic (Ionic CLI) : 3.8.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 1.3.12
Cordova Platforms : none
Ionic Framework : ionic-angular 3.5.0
System:
Android SDK Tools : 25.2.3
Node : v6.11.1
npm : 3.10.10
OS : Windows 10
You should upgrade this to 2.x (check the changelog for breaking changes of this upgrade).
When you are done with it and the problem persists:
How and where are you calling and Cordova or Ionic Native plugins?
Is it wrapped in platform.ready
to make sture everything is actually loaded?
Did you add vendor.js to the index.html as the changelog states?