From issues-return-67632-archive-asf-public=cust-asf.ponee.io@commons.apache.org Tue May 8 19:48:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 41D0A180674 for ; Tue, 8 May 2018 19:48:04 +0200 (CEST) Received: (qmail 31928 invoked by uid 500); 8 May 2018 17:48:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 31915 invoked by uid 99); 8 May 2018 17:48: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, 08 May 2018 17:48:03 +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 C6402CB1C5 for ; Tue, 8 May 2018 17:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8ZNZwW_qDAFv for ; Tue, 8 May 2018 17:48:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4D4825FB66 for ; Tue, 8 May 2018 17:48:01 +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 74CACE12F3 for ; Tue, 8 May 2018 17:48: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 2F27B2129B for ; Tue, 8 May 2018 17:48:00 +0000 (UTC) Date: Tue, 8 May 2018 17:48:00 +0000 (UTC) From: "Alex Hall (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLI-286) platform add android doesn't have proper repository config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLI-286?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Alex Hall updated CLI-286: -------------------------- Description:=20 Unclear on if this is the correct=C2=A0place to categorize=C2=A0this issue,= but the fix is simple.=C2=A0 By default, when setting up a new project:=C2=A0 ``` cordova create cordova com.example.test CordovaTest cordova platform add android --save ``` The resulting build.gradle does not provide the appropriate google maven re= pository to pull from given the android 3.0 gradle plugin.=C2=A0 =C2=A0 According to: [https://developer.android.com/studio/build/gradle-plugin-3-0= -0-migration] your=C2=A0gradle build script configuration for the Adroid 3.0 plugin shoul= d look something like: ``` buildscript { =C2=A0 =C2=A0 =C2=A0repositories{ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0jcenter() =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0maven \{ url "http://jcenter.bintray.com"} =C2=A0 =C2=A0 =C2=A0google() // <<---- HAD TO ADD THIS!!! =C2=A0 =C2=A0 =C2=A0} } ```` =C2=A0 I've listed the problem as minor since Android Studio immediately realizes = the issue and even gives you the option to fix it automatically, but i've b= een hacking purely from the CLI and kept getting cryptic errors like: "unab= le to find valid certification path to requested target".=C2=A0 =C2=A0 was: Unclear on if this is the correct=C2=A0place to categorize=C2=A0this issue,= but the fix is simple.=C2=A0 By default, when setting up a new project:=C2=A0 ``` cordova create cordova com.example.test CordovaTest cordova platform add android --save ``` The resulting build.gradle does not provide the appropriate google maven re= pository to pull from given the android 3.0 gradle plugin.=C2=A0 =C2=A0 According to: [https://developer.android.com/studio/build/gradle-plugin-3-0= -0-migration] your=C2=A0gradle build script configuration for the Adroid 3.0 plugin shoul= d look something like: ``` buildscript { =C2=A0 =C2=A0 =C2=A0repositories { =C2=A0 =C2=A0 =C2=A0jcenter() =C2=A0 =C2=A0 =C2=A0maven \{ url "http://jcenter.bintray.com"} =C2=A0 =C2=A0 =C2=A0google() // <<---- HAD TO ADD THIS!!! =C2=A0 =C2=A0 =C2=A0} } ```` =C2=A0 I've listed the problem as minor since Android Studio immediately realizes = the issue and even gives you the option to fix it automatically, but i've b= een hacking purely from the CLI and kept getting cryptic errors like: "unab= le to find valid certification path to requested target".=C2=A0 =C2=A0 > platform add android doesn't have proper repository config > ---------------------------------------------------------- > > Key: CLI-286 > URL: https://issues.apache.org/jira/browse/CLI-286 > Project: Commons CLI > Issue Type: Bug > Components: CLI-2.x > Affects Versions: 1.4 > Environment: OSX High Sierra > NPM v6.0.0 > Node=C2=A0v8.11.1 > Java v1.8 > Cordova v8.0.0 > Reporter: Alex Hall > Priority: Minor > Labels: easyfix, newbie > Original Estimate: 2h > Remaining Estimate: 2h > > Unclear on if this is the correct=C2=A0place to categorize=C2=A0this issu= e, but the fix is simple.=C2=A0 > By default, when setting up a new project:=C2=A0 > ``` > cordova create cordova com.example.test CordovaTest > cordova platform add android --save > ``` > The resulting build.gradle does not provide the appropriate google maven = repository to pull from given the android 3.0 gradle plugin.=C2=A0 > =C2=A0 > According to: [https://developer.android.com/studio/build/gradle-plugin-3= -0-0-migration] > your=C2=A0gradle build script configuration for the Adroid 3.0 plugin sho= uld look something like: > ``` > buildscript { > =C2=A0 =C2=A0 =C2=A0repositories{ =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0jcenter() =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0maven \{ url "http://jcenter.bintray.com"} > =C2=A0 =C2=A0 =C2=A0google() // <<---- HAD TO ADD THIS!!! > =C2=A0 =C2=A0 =C2=A0} > } > ```` > =C2=A0 > I've listed the problem as minor since Android Studio immediately realize= s the issue and even gives you the option to fix it automatically, but i've= been hacking purely from the CLI and kept getting cryptic errors like: "un= able to find valid certification path to requested target".=C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)