Build failed with cordova 8.0.0
See original GitHub issueHello! Trying create simple project with cordovarduino:
cordova create cordovarduino_01 com.cordova.arduino01 CordovArduino_01
cd cordovarduino_01
cordova platform add android
cordova plugin add cordovarduino
cordova build android --verbose
When compile catch this error:
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
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 E:\Android_cordova\cordovarduino_01\platforms\android\res\xml\config.xml
cp: copyFileSync: could not write to dest file (code=ENOENT):E:\Android_cordova\cordovarduino_01\platforms\android\res\xml\config.xml
Merging project's config.xml into platform-specific android config.xml
Parsing E:\Android_cordova\cordovarduino_01\platforms\android\res\xml\config.xml failed
(node:5428) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'E:\Android_cordova\
cordovarduino_01\platforms\android\res\xml\config.xml'
(node:5428) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
My Cordova project info:
#cordova info
Collecting Data...
Node version: v8.9.4
Cordova version: 8.0.0
Config.xml file:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.cordova.arduino01" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>CordovArduino_01</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<plugin name="fr.drangies.cordova.serial" spec="~0.0.7" />
<engine name="android" spec="^7.0.0" />
</widget>
Plugins:
cordova-plugin-whitelist,fr.drangies.cordova.serial
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Unable to build/run cordova android 8.0.0 · Issue #797 - GitHub
A problem occurred evaluating project ':app'. Failed to apply plugin [id 'com.android.internal.version-check'] Minimum supported Gradle version ...
Read more >Cordova 8.0.0 and cordova-ios 4.5.4 remotebuild fails
1 to 8.0.0, I am unable to build ios apps. The problem occurs using the recent cordova-ios version 4.5.4 as well as with...
Read more >cordova 8.0.0 build failed after add crosswalk plugin
The error occures from Cordova plugins using different versions of Android Support Libraries. cordova-android-support-gradle-release can help ...
Read more >Maximo Anywhere Build Fails when Installation Path Contains ...
If the Maximo Anywhere 764 installation path contains a space (e.g. C:\Anywhere\AW764IFIX 001), various build failures occur.
Read more >Cordova Android 8.0.0 Released!
We are happy to announce that we have just released Cordova Android 8.0.0! This is one of Cordova's supported platforms for building Android ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@xseignard: Thank you! Works like a charm now!
You might want to have a look at #101 which seems to fix some issues with cordova-android v7.1.0. I was getting different errors, though…