Android maven plugin with android v6 support

I am using maven-android-plugin to build my android application which depends on android v4 and v7 support library.
Since I did not find how to download the entire sdk file from developer.android.com, I am not using the android deployment tool to deploy android to install the android sdk local storage. So I want to use the support library that comes with the adt package below, as I write the dependencies in my pom.xml:

        <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>

The first two are what I wrote at the beginning, but maven raised an error:

No resource found that matches the given name 'Theme.AppCompat.Light'.

. v7 .apklib. .
, , . pom, ? :

Apache Maven 3.0.4
Java version: 1.7.0_25, vendor: Oracle Corporation
Android Platform Version:4.3
Android Maven Plugin:3.6.0
+4
2

, <type>jar</type> <type>apklib</type>. .

  • : fooobar.com/questions/1167793/...
  • pom :

    <dependency>
        <groupId>com.android.support</groupId>
        <artifactId>appcompat-v7</artifactId>
        <version>18.0.0</version>
        <type>apklib</type>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.android.support</groupId>
        <artifactId>appcompat-v7</artifactId>
        <version>18.0.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
    
0

:

 <dependency>
     <groupId>com.android.support</groupId>
     <artifactId>appcompat-v7</artifactId>
     <version>18.0.0</version>
     <type>aar</type>
 </dependency>

Theme.Appcompat.Light .

0

All Articles