Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4F54101AC for ; Mon, 8 Dec 2014 13:57:45 +0000 (UTC) Received: (qmail 46895 invoked by uid 500); 8 Dec 2014 13:57:45 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 46856 invoked by uid 500); 8 Dec 2014 13:57:45 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 46844 invoked by uid 99); 8 Dec 2014 13:57:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 13:57:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kamrik@google.com designates 209.85.218.50 as permitted sender) Received: from [209.85.218.50] (HELO mail-oi0-f50.google.com) (209.85.218.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 13:57:40 +0000 Received: by mail-oi0-f50.google.com with SMTP id a141so3321508oig.37 for ; Mon, 08 Dec 2014 05:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FFSFoyNLuhvSia5bhRBqQDGZ3lWtbPywXRblt8WSurI=; b=e/8Y4XsLqvvgPcsD0PgbvLI/xJ6p1B7ShLdc9ET/ccGUk+43uqV/9m1IH+wP6ryTtX iQhLjtTfEOH/uI9f15NqUy3h5pLdKxVJ5RhGGbgzuk3ow585KMSb9YgZhwZHbVetkPvC oM7OHDcIzOqo8nx4hIWdWVxCSB2OueCreJMq8xzqRIB6+aMlMgClPLaYCTzuEappxwSP mJpRSu5YVCPiS5s+YK7DNyTk4p37U9IGQID8x1khXS+6i22BBS27mi9Vss97MT+s1C1C WYuIEXRZJqFE1N5Mv+5CejVVE10bdoeHbE8i/jX6/ukhRYrK+eh1LI7YdhfWyW0SzYeI 4LCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=FFSFoyNLuhvSia5bhRBqQDGZ3lWtbPywXRblt8WSurI=; b=LB9cZZxEMIqgkJFhDC0olyv6D+rv0BidtXcMP90KQcG6AvtF7YaXBfnwYOpG076q2u 3U7+ZqueyFrjC26XPNd0V6y68PknccpA/2D6lmMJogmQHSpYqVSIKCgRKL8JIEoSKpn/ iAXAZof5bZiym3YPgQ6af/2+CtcMz02x3SJjFqvyBZ80hH7wy/fPPH5Gz/uilzCucNI5 9BWFdYGMePJpExmhmwZizHzBdpa+bpHKxwvbqdAMrewkGToWt9RtPSuxiT2OLfIWnX/o iKB5qnYm5zgNFCtvd7j4TD5RQ3Sz8ImNnvmt6VjdpOI5g+0u4Ag5tPT6RVTKWM8/koHQ Jqaw== X-Gm-Message-State: ALoCoQnORPm92/vUPWePVkC7GAbvKqknp23uhHGJTKqGBaKxYRNbp/meBO0ewoTNQNKzXZOhdMRe MIME-Version: 1.0 X-Received: by 10.202.85.80 with SMTP id j77mr6880880oib.97.1418047040140; Mon, 08 Dec 2014 05:57:20 -0800 (PST) Received: by 10.202.1.82 with HTTP; Mon, 8 Dec 2014 05:57:20 -0800 (PST) In-Reply-To: References: Date: Mon, 8 Dec 2014 08:57:20 -0500 Message-ID: Subject: Re: minSdkVersion conflict From: Mark Koudritsky To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a113defd81a54ea0509b4ce46 X-Virus-Checked: Checked by ClamAV on apache.org --001a113defd81a54ea0509b4ce46 Content-Type: text/plain; charset=UTF-8 If you you add this line to cordova project config.xml It should set the same value in AndroidManifest.xml during prepare. The code that deals with it is in cordova-lib/src/cordova/metadata/android_parser.js starting at line 259 On Mon, Dec 8, 2014 at 1:59 AM, Fu, Junwei wrote: > Hi, > > The Cordova project minSdkVersion is 10, the xwalk library is 14, it will > show the following error when compile with Gradle. > > > ./test/AndroidManifest.xml:0:0 Error: > > uses-sdk:minSdkVersion 10 cannot be smaller than version 14 > declared in library org.xwalk:xwalk_core_library_beta:9.38.208.4 > > :processArmv7DebugManifest FAILED > > I found a workaround from https://gist.github.com/goldierox/9533466, it > replace the minSdkVersion by Gradle task. > > Is it an good approach to solute this issue, Do you have better approach? > Thanks, > Junwei. > --001a113defd81a54ea0509b4ce46--