mahmud83 / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

how to include android support library as apklib dependency? #422

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.My android project use android support library v4 & v7
2.Because I cannot down the sdk without adt-bundle,so I cannot use the deployer 
repo to setup local maven repo. Instead, I manually write the systemPath for 
those dependencies. 
3.My dependencies is as follows:
    <dependencies>
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>${platform.version}</version>
            <scope>system</scope>
            <systemPath>/home/cg/adt-bundle/sdk/platforms/android-18/android.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility-v7</artifactId>
            <version>18</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/appcompat/libs/android-support-v7-appcompat.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility-v4</artifactId>
            <version>18</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/appcompat/libs/android-support-v4.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility</artifactId>
            <version>18</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/appcompat.apklib</systemPath>
            <type>apklib</type>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility</artifactId>
            <version>18</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/appcompat/bin/appcompat.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.umeng</groupId>
            <artifactId>fb_update_analytics</artifactId>
            <version>201309101309</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/libs/umeng_sdk_201309101309_fb_update_analytics.jar</systemPath>
        </dependency>
    </dependencies>

What is the expected output?

What do you see instead?
the info before the first error
/home/cg/TUNet-auto/aTUNet/res/values/styles.xml:7: error: Error retrieving 
parent for item: No resource found that matches the given name 
'Theme.AppCompat.Light'.

What version of maven-android-plugin are you using?
3.6.0

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/local/java/jdk1.7.0_25/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "3.8.0-31-generic", arch: "amd64", family: "unix"

Please provide any additional information below.

Original issue reported on code.google.com by cgcgb...@gmail.com on 13 Oct 2013 at 7:04

GoogleCodeExporter commented 9 years ago
Do not use system scope. Instead use the Maven Android SDK Deployer and normal 
compile type dependency. 

Original comment by mosa...@gmail.com on 31 Dec 2013 at 7:10