[
https://issues.apache.org/jira/browse/CB-12936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057364#comment-16057364
]
Jacques Marques edited comment on CB-12936 at 6/21/17 11:52 AM:
----------------------------------------------------------------
And to prove that's not a Ionic problem, if I do this only with Cordova I get
the same error:
{code:java}
cordova create cordovaMyApp
Creating a new cordova project.
jacques@jacques-Vostro-3560:~$ cd cordovaMyApp/
jacques@jacques-Vostro-3560:~/cordovaMyApp$ cordova platform add android
Using cordova-fetch for cordova-android@~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.cordova.hellocordova
Name: HelloCordova
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the
project
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android
greater than 4.0. If you have a previous platform version, you do *not* need
this plugin since the whitelist will be built in.
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~6.2.3 into config.xml file ...
jacques@jacques-Vostro-3560:~/cordovaMyApp$ cordova run android --verbose
No scripts found for hook "before_run".
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
/home/jacques/cordovaMyApp/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
Wrote out android application name "HelloCordova" to
/home/jacques/cordovaMyApp/platforms/android/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 "io.cordova.hellocordova" to
/home/jacques/cordovaMyApp/platforms/android/src/io/cordova/hellocordova/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".
ANDROID_HOME=/home/jacques/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Running command: /usr/lib/gradle/3.5/bin/gradle -p
/home/jacques/cordovaMyApp/platforms/android wrapper -b
/home/jacques/cordovaMyApp/platforms/android/wrapper.gradle
:wrapper
BUILD SUCCESSFUL
Total time: 1.207 secs
Command finished with error code 0: /usr/lib/gradle/3.5/bin/gradle
-p,/home/jacques/cordovaMyApp/platforms/android,wrapper,-b,/home/jacques/cordovaMyApp/platforms/android/wrapper.gradle
Subproject Path: CordovaLib
Running command: /home/jacques/cordovaMyApp/platforms/android/gradlew
cdvBuildDebug -b /home/jacques/cordovaMyApp/platforms/android/build.gradle
-Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m
-Pandroid.useDeprecatedNdk=true
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_v1a5ufs84xltr109j8uq5num.run(/home/jacques/cordovaMyApp/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is
scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be
removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty()
instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have
changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no
previous execution, etc.).
:compileDebugNdk UP-TO-DATE
:compileDebugSources
:mergeDebugShaders
:compileDebugShaders
:generateDebugAssets
:mergeDebugAssets
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateSigningDebug
:packageDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 16.749 secs
Command finished with error code 0:
/home/jacques/cordovaMyApp/platforms/android/gradlew
cdvBuildDebug,-b,/home/jacques/cordovaMyApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Built the following apk(s):
/home/jacques/cordovaMyApp/platforms/android/build/outputs/apk/android-debug.apk
No scripts found for hook "before_deploy".
ANDROID_HOME=/home/jacques/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Running command: adb devices
Error: spawn ELOOP
{code}
was (Author: jacquesmarques):
And to prove that's not a Ionic problem, if I do this I receive the some error:
{code:java}
cordova create cordovaMyApp
Creating a new cordova project.
jacques@jacques-Vostro-3560:~$ cd cordovaMyApp/
jacques@jacques-Vostro-3560:~/cordovaMyApp$ cordova platform add android
Using cordova-fetch for cordova-android@~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.cordova.hellocordova
Name: HelloCordova
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the
project
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android
greater than 4.0. If you have a previous platform version, you do *not* need
this plugin since the whitelist will be built in.
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~6.2.3 into config.xml file ...
jacques@jacques-Vostro-3560:~/cordovaMyApp$ cordova run android --verbose
No scripts found for hook "before_run".
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
/home/jacques/cordovaMyApp/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
Wrote out android application name "HelloCordova" to
/home/jacques/cordovaMyApp/platforms/android/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 "io.cordova.hellocordova" to
/home/jacques/cordovaMyApp/platforms/android/src/io/cordova/hellocordova/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".
ANDROID_HOME=/home/jacques/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Running command: /usr/lib/gradle/3.5/bin/gradle -p
/home/jacques/cordovaMyApp/platforms/android wrapper -b
/home/jacques/cordovaMyApp/platforms/android/wrapper.gradle
:wrapper
BUILD SUCCESSFUL
Total time: 1.207 secs
Command finished with error code 0: /usr/lib/gradle/3.5/bin/gradle
-p,/home/jacques/cordovaMyApp/platforms/android,wrapper,-b,/home/jacques/cordovaMyApp/platforms/android/wrapper.gradle
Subproject Path: CordovaLib
Running command: /home/jacques/cordovaMyApp/platforms/android/gradlew
cdvBuildDebug -b /home/jacques/cordovaMyApp/platforms/android/build.gradle
-Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m
-Pandroid.useDeprecatedNdk=true
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_v1a5ufs84xltr109j8uq5num.run(/home/jacques/cordovaMyApp/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is
scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be
removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty()
instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have
changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no
previous execution, etc.).
:compileDebugNdk UP-TO-DATE
:compileDebugSources
:mergeDebugShaders
:compileDebugShaders
:generateDebugAssets
:mergeDebugAssets
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateSigningDebug
:packageDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 16.749 secs
Command finished with error code 0:
/home/jacques/cordovaMyApp/platforms/android/gradlew
cdvBuildDebug,-b,/home/jacques/cordovaMyApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Built the following apk(s):
/home/jacques/cordovaMyApp/platforms/android/build/outputs/apk/android-debug.apk
No scripts found for hook "before_deploy".
ANDROID_HOME=/home/jacques/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Running command: adb devices
Error: spawn ELOOP
{code}
> Erron when try run app in android device
> ----------------------------------------
>
> Key: CB-12936
> URL: https://issues.apache.org/jira/browse/CB-12936
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: [email protected]
> Environment: SO: Ubuntu 14.04 LTS
> global packages:
> @ionic/cli-utils : 1.4.0
> Cordova CLI : 7.0.1
> Ionic CLI : 3.4.0
> local packages:
> @ionic/app-scripts : 1.3.7
> @ionic/cli-plugin-cordova : 1.4.0
> @ionic/cli-plugin-ionic-angular : 1.3.1
> Cordova Platforms : android 6.2.3
> Ionic Framework : ionic-angular 3.3.0
> System:
> Node : v6.9.1
> OS : Linux 3.13
> Xcode : not installed
> ios-deploy : not installed
> ios-sim : not installed
> npm : 3.10.9
> Reporter: Jacques Marques
> Assignee: Joe Bowser
>
> When I try run my app in my android device I receive this message:
> cordova run android --device --verbose
> No scripts found for hook "before_run".
> 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
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/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
> Wrote out android application name "Drogaria Santa Marta" to
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/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 "com.conticenter.samapp" to
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/src/com/conticenter/samapp/MainActivity.java
> Updating icons at platforms/android/res
> Updating splash screens at platforms/android/res
> This app does not have additional resource files defined
> Prepared android project successfully
> No scripts found for hook "after_prepare".
> ANDROID_HOME=/home/jacques/android-sdk
> JAVA_HOME=/usr/lib/jvm/java-8-oracle
> Subproject Path: CordovaLib
> Running command:
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/gradlew
> cdvBuildDebug -b
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/build.gradle
> -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m
> -Pandroid.useDeprecatedNdk=true
> 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_925jjztg5974xtj29s4u1wwcv.run(/home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/build.gradle:137)
> The JavaCompile.setDependencyCacheDir() method has been deprecated and is
> scheduled to be removed in Gradle 4.0.
> Incremental java compilation is an incubating feature.
> The TaskInputs.source(Object) method has been deprecated and is scheduled to
> be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty()
> instead.
> :preBuild UP-TO-DATE
> :preDebugBuild UP-TO-DATE
> :checkDebugManifest
> :CordovaLib:preBuild UP-TO-DATE
> :CordovaLib:preDebugBuild UP-TO-DATE
> :CordovaLib:checkDebugManifest
> :CordovaLib:prepareDebugDependencies
> :CordovaLib:compileDebugAidl UP-TO-DATE
> :CordovaLib:compileDebugNdk UP-TO-DATE
> :CordovaLib:compileLint UP-TO-DATE
> :CordovaLib:copyDebugLint UP-TO-DATE
> :CordovaLib:mergeDebugShaders UP-TO-DATE
> :CordovaLib:compileDebugShaders UP-TO-DATE
> :CordovaLib:generateDebugAssets UP-TO-DATE
> :CordovaLib:mergeDebugAssets UP-TO-DATE
> :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
> :CordovaLib:packageDebugRenderscript UP-TO-DATE
> :CordovaLib:compileDebugRenderscript UP-TO-DATE
> :CordovaLib:generateDebugResValues UP-TO-DATE
> :CordovaLib:generateDebugResources UP-TO-DATE
> :CordovaLib:packageDebugResources UP-TO-DATE
> :CordovaLib:processDebugManifest UP-TO-DATE
> :CordovaLib:generateDebugBuildConfig UP-TO-DATE
> :CordovaLib:processDebugResources UP-TO-DATE
> :CordovaLib:generateDebugSources UP-TO-DATE
> :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
> :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
> :CordovaLib:processDebugJavaRes UP-TO-DATE
> :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
> :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
> :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
> :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
> :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
> :CordovaLib:bundleDebug UP-TO-DATE
> :prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
> :prepareDebugDependencies
> :compileDebugAidl UP-TO-DATE
> :compileDebugRenderscript UP-TO-DATE
> :generateDebugBuildConfig UP-TO-DATE
> :generateDebugResValues UP-TO-DATE
> :generateDebugResources UP-TO-DATE
> :mergeDebugResources UP-TO-DATE
> :processDebugManifest UP-TO-DATE
> :processDebugResources UP-TO-DATE
> :generateDebugSources UP-TO-DATE
> :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
> :compileDebugJavaWithJavac UP-TO-DATE
> :compileDebugNdk UP-TO-DATE
> :compileDebugSources UP-TO-DATE
> :mergeDebugShaders UP-TO-DATE
> :compileDebugShaders UP-TO-DATE
> :generateDebugAssets UP-TO-DATE
> :mergeDebugAssets UP-TO-DATE
> :transformClassesWithDexForDebug UP-TO-DATE
> :mergeDebugJniLibFolders UP-TO-DATE
> :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
> :processDebugJavaRes UP-TO-DATE
> :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
> :validateSigningDebug
> :packageDebug UP-TO-DATE
> :assembleDebug UP-TO-DATE
> :cdvBuildDebug UP-TO-DATE
> BUILD SUCCESSFUL
> Total time: 1.326 secs
> Command finished with error code 0:
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/gradlew
> cdvBuildDebug,-b,/home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
> Built the following apk(s):
>
> /home/jacques/desenvolvimento/mobile/ionic2/samapp/platforms/android/build/outputs/apk/android-debug.apk
> No scripts found for hook "before_deploy".
> ANDROID_HOME=/home/jacques/android-sdk
> JAVA_HOME=/usr/lib/jvm/java-8-oracle
> Running command: adb devices
> Error: spawn ELOOP
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]