Phillip Whiteley created CB-12661:
-------------------------------------
Summary: The android emulator will not execute. This exact setup
(Except for Android Studio Updates) worked Jan 2017 and for years before. I
have seen many posts on this.
Key: CB-12661
URL: https://issues.apache.org/jira/browse/CB-12661
Project: Apache Cordova
Issue Type: Bug
Components: cordova-cli, Windows
Environment: WIndow 10 Home
Cordova 6.5.0
Reporter: Phillip Whiteley
Hi,
The bug is that the emulator cannot be started - will deploy to phone.
Steps:
Create a simple app .
cordova create hello com.ex.hello HelloWorld
cd hello
cordova platform add [email protected] (Or gradle won't work.)
cordova run android
---------------------------------------------------------------
BUG
-------
ANDROID_HOME=E:\2016\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
Subproject Path: CordovaLib
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be
reused, use --status for details
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_bkix3ywyblbgnflxvkopif3zs.run(C:\Users\phil\Desktop\newAPP\platforms\android\build.gradle:137)
Observed package id 'build-tools;23.0.1' in inconsistent location
'E:\2016\Android\android-sdk\build-tools\build-tools-23.0.1' (Expected
'E:\2016\Android\android-sdk\build-tools\23.0.1')
Observed package id 'build-tools;23.0.1' in inconsistent location
'E:\2016\Android\android-sdk\build-tools\build-tools-23.0.1' (Expected
'E:\2016\Android\android-sdk\build-tools\23.0.1')
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
>> Everything up -to-date here..... pcw
:cdvBuildDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 23.227 secs
Built the following apk(s):
C:/Users/phil/Desktop/newAPP/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=E:\2016\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined <<<----------------
---------------------------------------------------------------------------------------
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]