-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing artifact com.android.support:support-v4:jar:21.0.0-rc1 #246
Comments
Same problem here |
Run this: mvn install -pl repositories/android-m2repository |
I have the same problem. I want to use the appcompat-v7 library as an aar. So I do
within maven-android-sdk-deployer/repositories, then I look up the artifact on my nexus and find
The problem is, appcompat-v7 depends on v4, to be exact it depends on
which is not deployed from the /repositories folder. Only an aar is deployed from it (which would be fine for me, if appcompat-v7 would use it)
from the maven-android-sdk-deployer/extras/compatibility-v4 folder I get a
on my nexus which wont be recognized by appcompat. Soooo I have no idea what to do, how to add v4 and v7-appcompat to my pom to be ready to build it via maven :-( |
So basically, adding this to my pom does not work:
|
for the particular problem of missing "com.android.support:support-v4:jar:21.0.0:compile", other than exclude it with:
you can also install it by
for my case, installing the jar removed a warning but doesn't seem to help to get it work. as there are maven directory structure provided for the aar, instead of rely on maven-android-sdk-deployer to copy the aar around, I added a repository definition as follows:
|
The only way to heal this I've found is following. Yes, it's really bad and should be used extremely careful (till the day Android guys fix their provided maven repo). Navigate to location of appcompat-v7 pom.xml in your local repository and open it for editing. And insert 'aar' to 'support-v4' dependency. Like this: <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>21.0.2</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<version>21.0.2</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project> |
Perhaps maven-android-sdk-deployer could be made to automatically insert that |
If you send a pull request that does that .. I can merge it. |
I might have a go at that next week ;-) |
Hi I am new to Maven. I am trying to convert existing Eclipse Android project to Maven Central. Its an open source project. support-v7-appcompat, support-v7-mediarouter and appcompat_v7 are dependencies in the project. So I used sdk deployer to add to local repo. But it gives me an error missing artifact com.android.support:support-v4:jar:21.0.0-rc1 in Eclipse and when I am trying to mvn clean install.
Here is my POM file.
Please help.
4.0.0
com.connectsdk
Connect-SDK-Android
1.3.1
pom
Connect SDK
Connect SDK is an open source framework that connects your
mobile apps with multiple TV platforms.
The text was updated successfully, but these errors were encountered: