Maven + Android
От: Аноним  
Дата: 07.02.14 09:31
Оценка:
Здравствуйте други!

Не могу собрать проект с использованием support-library-v7

мой pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>ru.xxxxx</groupId>
    <artifactId>xxxx-android</artifactId>
    <version>1.0</version>
    <packaging>apk</packaging>
    <name>xxx-android</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <platform.version>4.1.1.4</platform.version>
        <android.plugin.version>3.8.2</android.plugin.version>
        <android.sdk.path>....</android.sdk.path>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>${platform.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility-v4</artifactId>
            <version>19.0.1</version>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility-v7-appcompat</artifactId>
            <version>19.0.1</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>android.support</groupId>
            <artifactId>compatibility-v7-appcompat</artifactId>
            <version>19.0.1</version>
            <type>apklib</type>
        </dependency>
    </dependencies>
    <build>
        <finalName>${project.artifactId}</finalName>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                    <artifactId>android-maven-plugin</artifactId>
                    <version>${android.plugin.version}</version>
                    <extensions>true</extensions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                <configuration>
                    <sdk>
                        <platform>7</platform>
                    </sdk>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


при сборке получаю букет ошибок

[INFO] c:\Users\dxxxxx\Temp\xxxx-android\target\unpacked-libs\android.support_compatibility-v7-appcompat_apklib_19.0.1\res\values-v14\styles_base.xml:24: e
rror: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
[INFO] c:\Users\dxxxxx\Temp\xxxx-android\target\unpacked-libs\android.support_compatibility-v7-appcompat_apklib_19.0.1\res\values-v14\styles_base.xml:28: e
rror: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
[INFO] c:\Users\dxxxxx\Temp\xxxx-android\target\unpacked-libs\android.support_compatibility-v7-appcompat_apklib_19.0.1\res\values-v14\styles_base.xml:32: e
rror: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.
[INFO] c:\Users\dxxxxx\Temp\xxxx-android\target\unpacked-libs\android.support_compatibility-v7-appcompat_apklib_19.0.1\res\values-v14\styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'.
...................


как победить эти ошибки?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.