im new in apache cordova, i try make a project with cordova, in the begining it works, but when i add some platform it giving error.
Error: An error occured during creation of android sub-project.
this the screen shoot
http://i39.tinypic.com/29vyla0.jpg
"ERROR : executing command 'ant', make sure you have ant installed and added to your path."
You need to install and configure ant if you want to add Android platform :
http://ant.apache.org/manual/install.html
Here is a guide for Android platform :
http://cordova.apache.org/docs/en/3.0.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
Related
I was trying to make react native desktop app, I have never used it before its my first time experience and am facing errors I did tried to resolve them but couldnot, i did followed the instructions given on official website, error i am facing right now is:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.target
s(46,5): error MSB8036: The Windows SDK version 10.0.18362.0 was not found.
I installed the sdk but its not going and this is what i see on my terminal
Build failed with message Building Solution returned error code 1. Check your build configuration.
nailed it....!!!
I don't know why but the issue was with the target SDK version 10.0.18362.0...
I installed the latest version and now its working absolutely fine.....
I'm on MacOS trying to run a react native (0.59.9) app on Android emulator. I've integrated Sentry using the wizard. Works fine on iPhone. On Android, this happens:
I try to run the app w/ react-native run-android
Build fails.
A problem occurred configuring project ':#sentry_react-native'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
I go into the android folder and create a local.properties file and paste this in:
sdk.dir=C:/Users/my_name/Library/Android/sdk
I try again to run the app w/ react-native run-android
Build fails.
A problem occurred configuring project ':#sentry_react-native'.
The SDK directory '/Users/my_name/project_path/android/C:/Users/my_name/Library/Android/sdk' does not exist.
Why is it concatenating the SDK dir w/ my project path? That doesn't make sense to me. How do I fix this?
this isn't a Sentry issue, but an Android environment issue, please look at https://reactnative.dev/docs/getting-started.html and set your Android env. properly.
Look for "Android development environment", good luck :)
Im trying to run my app on device but its showing error of
* What went wrong:
Execution failed for task ':app:fabricGenerateResourcesDebug'.
This error is showing when im using firebase native plugin.
You need to be read this Documentation no longer need ionic plugin.
https://github.com/angular/angularfire2
Install npm page and use this without plugin install.
Possible duplicate of:https://stackoverflow.com/a/49548906/10585097
Solution mentioned :Replace com.android.support:support-v4:+ with com.android.support:support-v4:27.1.0 in project.properties file under platform/android folder
I am having a hard time getting cordova to work as I expect.
Here are the steps I have taken.
npm install -g cordova
md apps
cd apps
cordova create win8 com.win8.tryout win8tryout
cordova platform add windows8
In the www/js folder I edited the index.js adding
navigator.notification.alert('try me out');
to the device ready event.
Then I build the cordova project from the apps/win8 folder
cordova build
Then I opened the visual studio solution in the platforms/windows8 folder and ran the application.
The code fails at the navigator.notification.alert('try me out'); line with
"JavaScript runtime error: Unable to get property 'alert' of undefined or null reference"
I suspect that the build process isn't working correctly because the cordova.js file in the windows8/www directory is only 52kb and I was expecting a file of about 300kb.
Any ideas or suggestions would be appreciated.
Ok so a bit more research and I realised my sort comings.
From the documentation here:
"From version 3.0 onward, Cordova implements all device APIs as plugins..."
I had originally downloaded v2.9.1 which did not implement the plugin architecture.
I am trying to build a simple app using Apache cordova. Things went well for android. However when I try to add the wp8 platform on my win 8 notebook, It show the following error:
Creating Cordova-WP8 Project:
App Name : abc
Namespace : com.sample.abc
Path : C:\Development\abc\platforms\wp8
CREATE SUCCESS : C:\Development\abc\platforms\wp8
ERROR: Could not find 'create.js' in 'bin' folder, aborting..
Could someone please point out what I am doing wrong!
Thanks
Check and see if you have all the system requirement to add and build cordova project
http://cordova.apache.org/docs/en/2.4.0/guide_getting-started_windows-phone-8_index.md.html
Sometime if the proper sdk set up is not present this error may occur.It happened in my case.