Iam new with cordova.
I have been installed cordova on my computer system.
I have been followed the instruction that i got from internet.
I have installed node js version "V4.4.5 X86".
I have installed Ant Apache version "1.9.6".
I have installed git version "2.16.2.windows.1".
I have installed cordova version "8.0.0" using "npm".
I have installed phonegap version "8.0.0" using "npm".
I have installed the stand alone Android SDK "Installer R24.4.1 Windows".
I have set my global environment variable on windows.
These are the list of variable that i have been input :
- JAVA_HOME : C:\Program Files\Java\jdk1.8.0_05
- ANDROID_HOME : C:\Program Files\Android\android-sdk
- ANT_HOME : C:\apache-ant-1.9.6
and i have been added value for "PATH" variable with this :
- C:\Program Files\Java\jdk1.8.0_05\bin;
- C:\Program Files\Android\android-sdk\tools;
- C:\Program Files\Android\android-sdk\platform-tools;
Four above is the new value that i added, of course iam using semicolon for value separator.
This is the full value for PATH Variable on my computer :
- C:\Windows\system32;
- C:\Windows;
- C:\Windows\System32\Wbem;
- C:\Windows\System32\WindowsPowerShell\v1.0\;
- C:\Program Files\nodejs\;
- C:\Program Files\Java\jdk1.8.0_05\bin;
- C:\Program Files\Android\android-sdk\tools;
- C:\Program Files\Android\android-sdk\platform-tools;
- C:\apache-ant-1.9.6\bin;C:\Program Files\Git\cmd
When i start to run cordova command for creating a project it just fine.
Here is the command.
cordova create hello com.example.hello HelloWorld
The command run fine.
After that i run command for add android platform.
Here is the command.
cordova platform add android
The command run fine.
And then the problem come when i build the apps using this command.
cordova build
When the command run it just stop until this.
Android Studio project detected
ANDROID_HOME=C:\Program Files\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
It just stop like that, there is no error, i dont know what to do.
And i have been use --verbose
to know detail.
Here is the --verbose
output detail.
No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at D:\Project\hello\platforms\android\app\src\main\res\xml\config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms\android\platform_www] to platforms\android\app\src\main\assets\www
Wrote out android application name "HelloWorld" to D:\Project\hello\platforms\android\app\src\main\res\values\strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000
Wrote out Android package name "com.example.hello" to D:\Project\hello\platforms\android\app\src\main\java\com\example\hello\MainActivity.java
This app does not have launcher icons defined
This app does not have splash screens defined
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=C:\Program Files\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
But i have still got no clue what does the output above means.
This is the tutorial that i have follow.
- https://www.youtube.com/watch?v=atH7naB4fDk -----> Installing Cordova & Android SDK on Windows 7, 8 & 10 to Develop Mobile app
- https://www.youtube.com/watch?v=qMhBnzGIsqk -----> How to Install Phonegap CLI and Cordova CLI on windows for android
I try to use an alternative using phonegap command, because i already install phonegap on my machine.
I use this command to build my project.
phonegap create testing
The command run fine.
After that i run command for add andrroid platform for phonegap.
Here is the command.
phonegap platform add android
The command run fine.
And then the problem is when build the apps using this command.
phonegap build android
Here is the output for the command.
[phonegap] executing 'cordova build android' ...
[phonegap] completed 'cordova build android --no-telemetry'
The problem is i dont get the "apk" file.
Please, i really need help.
It really makes me feel desperate.
I still dont know what should i do to resolve this.
I have record the video, so you all can see what i really face.
https://www.youtube.com/watch?v=fDRHcaAt_WY
I have downloaded all i need using SDK Manager.
This is the screenshot.
I hope you also watch the video.
Iam not write this question for my video rate.
I make a video so you can see more clearly about problem that i faced.
Iam sorry for my bad english.