Skip to content

Instantly share code, notes, and snippets.

@katemihalikova
Created January 9, 2018 09:25
Show Gist options
  • Save katemihalikova/5441af4a9417b5fde2572c82599f82df to your computer and use it in GitHub Desktop.
Save katemihalikova/5441af4a9417b5fde2572c82599f82df to your computer and use it in GitHub Desktop.
cordova issue
<?xml version='1.0' encoding='utf-8'?>
<widget id="test.cordova.plugins" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Test</name>
<plugin name="cordova-plugin-file-transfer" spec="^1.6.3" />
<plugin name="cordova-plugin-network-information" spec="~1.3.3" />
<engine name="android" spec="6.3.0" />
</widget>
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.
Discovered platform "android@6.3.0" in config.xml or package.json. Adding it to the project
No scripts found for hook "before_platform_add".
Using cordova-fetch for cordova-android@6.3.0
Running command: cmd "/s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-android@6.3.0 --production --no-save""
Command finished with error code 0: cmd /s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-android@6.3.0 --production --no-save"
Removing "cordova-" prefix from cordova-android
Adding android project...
PlatformApi successfully found for platform android
Creating Cordova project for the Android platform:
Path: platforms\android
Package: test.cordova.plugins
Name: Test
Activity: MainActivity
Android target: android-26
Copying android template project to platforms\android
Subproject Path: CordovaLib
Android project created with cordova-android@6.3.0
Saving android@6.3.0 into platforms.json
No scripts found for hook "after_platform_add".
PlatformApi successfully found for platform android
Checking config.xml for saved plugins that haven't been added to the project
Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-file-transfer@^1.6.3"
Running command: cmd "/s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-file-transfer@"^1.6.3" --production --no-save""
Command finished with error code 0: cmd /s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-file-transfer@"^1.6.3" --production --no-save"
Copying plugin "C:\Users\katem\src\_kendaya\detest.tmp\node_modules\cordova-plugin-file-transfer" => "C:\Users\katem\src\_kendaya\detest.tmp\plugins\cordova-plugin-file-transfer"
Calling plugman.install on plugin "C:\Users\katem\src\_kendaya\detest.tmp\plugins\cordova-plugin-file-transfer" for platform "android
Installing "cordova-plugin-file-transfer" for android
Running command: cmd "/s /c "C:\Users\katem\src\_kendaya\detest.tmp\platforms\android\cordova\version.bat""
Command finished with error code 0: cmd /s /c "C:\Users\katem\src\_kendaya\detest.tmp\platforms\android\cordova\version.bat"
Dependencies detected, iterating through them...
Requesting plugin "cordova-plugin-file@^5.0.0".
Plugin dependency "cordova-plugin-file" not fetched, retrieving then installing.
Running command: cmd "/s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-file@"^5.0.0" --production --no-save""
Command finished with error code 0: cmd /s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-file@"^5.0.0" --production --no-save"
Copying plugin "C:\Users\katem\src\_kendaya\detest.tmp\node_modules\cordova-plugin-file" => "C:\Users\katem\src\_kendaya\detest.tmp\plugins\cordova-plugin-file"
Installing "cordova-plugin-file" for android
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-file on android platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-file" on android.
Beginning processing of action stack for android project...
Action stack processing complete.
Install complete for cordova-plugin-file on android.
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-file on android platform only.
No scripts found for hook "after_plugin_install".
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-file-transfer on android platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-file-transfer" on android.
Beginning processing of action stack for android project...
Action stack processing complete.
Install complete for cordova-plugin-file-transfer on android.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-file-transfer on android platform only.
No scripts found for hook "after_plugin_install".
No scripts found for hook "after_plugin_add".
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-network-information@~1.3.3"
Running command: cmd "/s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-network-information@"~1.3.3" --production --no-save""
Command finished with error code 0: cmd /s /c "C:\Users\katem\AppData\Roaming\npm\npm.cmd install cordova-plugin-network-information@"~1.3.3" --production --no-save"
Copying plugin "C:\Users\katem\src\_kendaya\detest.tmp\node_modules\cordova-plugin-file" => "C:\Users\katem\src\_kendaya\detest.tmp\plugins\cordova-plugin-file"
Calling plugman.install on plugin "C:\Users\katem\src\_kendaya\detest.tmp\plugins\cordova-plugin-file" for platform "android
Plugin "cordova-plugin-file" already installed on android. Making it top-level.
No scripts found for hook "after_plugin_add".
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 C:\Users\katem\src\_kendaya\detest.tmp\platforms\android\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\assets\www
mkdir platforms\android\assets\www\cordova-js-src
mkdir platforms\android\assets\www\cordova-js-src\android
copy platforms\android\platform_www\cordova-js-src\android\nativeapiprovider.js platforms\android\assets\www\cordova-js-src\android\nativeapiprovider.js (new file)
copy platforms\android\platform_www\cordova-js-src\android\promptbasednativeapi.js platforms\android\assets\www\cordova-js-src\android\promptbasednativeapi.js (new file)
copy platforms\android\platform_www\cordova-js-src\exec.js platforms\android\assets\www\cordova-js-src\exec.js (new file)
copy platforms\android\platform_www\cordova-js-src\platform.js platforms\android\assets\www\cordova-js-src\platform.js (new file)
mkdir platforms\android\assets\www\cordova-js-src\plugin
mkdir platforms\android\assets\www\cordova-js-src\plugin\android
copy platforms\android\platform_www\cordova-js-src\plugin\android\app.js platforms\android\assets\www\cordova-js-src\plugin\android\app.js (new file)
copy platforms\android\platform_www\cordova.js platforms\android\assets\www\cordova.js (updated file)
copy platforms\android\platform_www\cordova_plugins.js platforms\android\assets\www\cordova_plugins.js (updated file)
rmdir platforms\android\assets\www\css (no source)
delete platforms\android\assets\www\css\index.css (no source)
rmdir platforms\android\assets\www\img (no source)
delete platforms\android\assets\www\img\cordova.png (no source)
delete platforms\android\assets\www\img\logo.png (no source)
delete platforms\android\assets\www\index.html (no source)
rmdir platforms\android\assets\www\js (no source)
delete platforms\android\assets\www\js\index.js (no source)
copy platforms\android\platform_www\plugins\cordova-plugin-file-transfer\www\FileTransfer.js platforms\android\assets\www\plugins\cordova-plugin-file-transfer\www\FileTransfer.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file-transfer\www\FileTransferError.js platforms\android\assets\www\plugins\cordova-plugin-file-transfer\www\FileTransferError.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\DirectoryEntry.js platforms\android\assets\www\plugins\cordova-plugin-file\www\DirectoryEntry.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\DirectoryReader.js platforms\android\assets\www\plugins\cordova-plugin-file\www\DirectoryReader.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\Entry.js platforms\android\assets\www\plugins\cordova-plugin-file\www\Entry.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\File.js platforms\android\assets\www\plugins\cordova-plugin-file\www\File.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileEntry.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileEntry.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileError.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileError.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileReader.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileReader.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileSystem.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileSystem.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileUploadOptions.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileUploadOptions.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileUploadResult.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileUploadResult.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\FileWriter.js platforms\android\assets\www\plugins\cordova-plugin-file\www\FileWriter.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\Flags.js platforms\android\assets\www\plugins\cordova-plugin-file\www\Flags.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\LocalFileSystem.js platforms\android\assets\www\plugins\cordova-plugin-file\www\LocalFileSystem.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\Metadata.js platforms\android\assets\www\plugins\cordova-plugin-file\www\Metadata.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\ProgressEvent.js platforms\android\assets\www\plugins\cordova-plugin-file\www\ProgressEvent.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\android\FileSystem.js platforms\android\assets\www\plugins\cordova-plugin-file\www\android\FileSystem.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\browser\isChrome.js platforms\android\assets\www\plugins\cordova-plugin-file\www\browser\isChrome.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\fileSystemPaths.js platforms\android\assets\www\plugins\cordova-plugin-file\www\fileSystemPaths.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\fileSystems-roots.js platforms\android\assets\www\plugins\cordova-plugin-file\www\fileSystems-roots.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\fileSystems.js platforms\android\assets\www\plugins\cordova-plugin-file\www\fileSystems.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\requestFileSystem.js platforms\android\assets\www\plugins\cordova-plugin-file\www\requestFileSystem.js (updated file)
copy platforms\android\platform_www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js platforms\android\assets\www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js (updated file)
Wrote out android application name "Test" to C:\Users\katem\src\_kendaya\detest.tmp\platforms\android\res\values\strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "test.cordova.plugins" to C:\Users\katem\src\_kendaya\detest.tmp\platforms\android\src\test\cordova\plugins\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".
Discovered platform "android@6.3.0" in config.xml or package.json. Adding it to the project
Using cordova-fetch for cordova-android@6.3.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: test.cordova.plugins
Name: Test
Activity: MainActivity
Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.3.0
Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project
Installing "cordova-plugin-file-transfer" for android
Installing "cordova-plugin-file" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
Installing "cordova-plugin-network-information" for android
Discovered platform "android@6.3.0" in config.xml or package.json. Adding it to the project
Using cordova-fetch for cordova-android@6.3.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: test.cordova.plugins
Name: Test
Activity: MainActivity
Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.3.0
Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project
Installing "cordova-plugin-file-transfer" for android
Installing "cordova-plugin-file" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
Plugin "cordova-plugin-file" already installed on android. Making it top-level.
{
"dependencies": {
"cordova-plugin-file-transfer": "^1.6.3",
"cordova-plugin-network-information": "~1.3.3",
"cordova-android": "6.3.0"
},
"cordova": {
"plugins": {
"cordova-plugin-file-transfer": {},
"cordova-plugin-network-information": {}
},
"platforms": [
"android"
]
}
}
{
"dependencies": {
"cordova-plugin-file": "^4.0.0",
"cordova-plugin-file-transfer": "^1.6.3",
"cordova-plugin-network-information": "~1.3.3",
"cordova-android": "6.3.0"
},
"cordova": {
"plugins": {
"cordova-plugin-file-transfer": {},
"cordova-plugin-network-information": {}
},
"platforms": [
"android"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment