Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AC4F4200D3C for ; Tue, 14 Nov 2017 14:11:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AAAD7160BF4; Tue, 14 Nov 2017 13:11:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D20AB1609EF for ; Tue, 14 Nov 2017 14:11:03 +0100 (CET) Received: (qmail 42374 invoked by uid 500); 14 Nov 2017 13:11:03 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 42348 invoked by uid 99); 14 Nov 2017 13:11:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 13:11:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 330EBC112F for ; Tue, 14 Nov 2017 13:11:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100 X-Spam-Level: X-Spam-Status: No, score=-100 tagged_above=-999 required=6.31 tests=[KAM_SHORT=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9ZlyT320m5FJ for ; Tue, 14 Nov 2017 13:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CE7CC5F6D3 for ; Tue, 14 Nov 2017 13:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4F215E09A5 for ; Tue, 14 Nov 2017 13:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 07DE223F05 for ; Tue, 14 Nov 2017 13:11:00 +0000 (UTC) Date: Tue, 14 Nov 2017 13:11:00 +0000 (UTC) From: "Vincent (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-13571) 'semver' property not found block the emulator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Nov 2017 13:11:04 -0000 Vincent created CB-13571: ---------------------------- Summary: 'semver' property not found block the emulator Key: CB-13571 URL: https://issues.apache.org/jira/browse/CB-13571 Project: Apache Cordova Issue Type: Bug Components: cordova-android Affects Versions: Master, 6.3.0 Environment: $ cordova requirement android {code} Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: installed android-27,android-26,android-25 Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle Requirements check results for ios: Apple macOS: installed darwin Xcode: installed [object Object] ios-deploy: installed [object Object] CocoaPods: installed [object Object] {code} $ cordova info {code} Node version: v8.9.1 Cordova version: 7.1.0 Config.xml file: MyApp An awesome Ionic/Cordova app. Ionic Framework Team Plugins: cordova-plugin-device,cordova-plugin-ionic-webview,cordova-plugin-splashscreen,cordova-plugin-whitelist,ionic-plugin-keyboard Android platform: ************************************************************************* The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager ************************************************************************* Running /Users/vincentherl/Library/Android/sdk/tools/bin/avdmanager list target Available Android targets:==============] 100% Fetch remote repository... ---------- id: 1 or "android-25" Name: Android API 25 Type: Platform API level: 25 Revision: 3 ---------- id: 2 or "android-26" Name: Android API 26 Type: Platform API level: 26 Revision: 2 ---------- id: 3 or "android-27" Name: Android API 27 Type: Platform API level: 27 Revision: 1 iOS platform: Xcode 9.1 Build version 9B55 {code} Reporter: Vincent Assignee: Joe Bowser When run my application with android emulator, the error {code}Error: Cannot read property 'semver' of null{code} exit the process. You can see here the log trace : $ cordova run android --emulator -d {code} .... BUILD SUCCESSFUL Total time: 1.014 secs Command finished with error code 0: /Users/vincentherl/Documents/lire/platforms/android/gradlew cdvBuildDebug,-b,/Users/vincentherl/Documents/lire/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true Built the following apk(s): /Users/vincentherl/Documents/lire/platforms/android/build/outputs/apk/android-debug.apk No scripts found for hook "before_deploy". ANDROID_HOME=/Users/vincentherl/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home Running command: adb devices Command finished with error code 0: adb devices Running command: avdmanager list avd Command finished with error code 0: avdmanager list,avd Error: Cannot read property 'semver' of null {code} Mabe a way, this line : https://github.com/apache/cordova-android/blob/83601dca2fa468a76bcb2c687b5baebfcb69588b/bin/templates/cordova/lib/emulator.js#L190 -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org