Skip to content
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

Cannot build #23

Closed
GoogleCodeExporter opened this issue Jun 4, 2015 · 6 comments
Closed

Cannot build #23

GoogleCodeExporter opened this issue Jun 4, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Clone project
2. Run "maven verify"

What is the expected output? What do you see instead?
[ERROR] Failed to execute goal on project testapp: Could not resolve 
dependencies for project 
com.google.android.apps.common.testing:testapp:apk:1.0-SNAPSHOT: The following 
artifacts could not be resolved: android.support:compatibility-v4:jar:18, 
android.support:compatibility-v7-appcompat:jar:18, 
android.support:compatibility-v7-appcompat:apklib:18: Could not find artifact 
android.support:compatibility-v4:jar:18 in android-local-repo 
(file://C:/Java/adt/sdk/extras/android/m2r
epository) -> [Help 1]


What version of the product are you using? On what operating system?
Source checked out today.


Please provide any additional information below.
The local repo offers this:
  <groupId>com.android.support</groupId>
  <artifactId>appcompat-v7</artifactId>

But espresso is missing the "com." in the group

Original issue reported on code.google.com by mar...@greenrobot.de on 15 Nov 2013 at 10:48

@GoogleCodeExporter
Copy link
Author

Stephan will be looking into improving the setup experience.

Workaround: make compatibility jars in android-sdk extras available in your 
local maven repository (they are not on maven central).

I used this tool: https://github.com/mosabua/maven-android-sdk-deployer (mvn 
install -P 4.3 was enough).

Original comment by vale...@google.com on 18 Nov 2013 at 6:05

@GoogleCodeExporter
Copy link
Author

Running maven-android-sdk-deployer is required. After that, everything should 
work. Resolving the bug, but it you still have issues, feel free to reopen.

Original comment by vale...@google.com on 9 Jan 2014 at 7:35

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

[ERROR] Failed to execute goal on project testapp: Could not resolve 
dependencies for project 
com.google.android.apps.common.testing:testapp:apk:1.1: The following artifacts 
could not be resolved: android.support:compatibility-v4:jar:19.0.1, 
android.support:compatibility-v7-appcompat:jar:19.0.1, 
android.support:compatibility-v7-appcompat:apklib:19.0.1: Failure to find 
android.support:compatibility-v4:jar:19.0.1 in 
http://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of central has 
elapsed or updates are forced -> [Help 1]

First I run the mvn install -P 4.4, but it doesn't help at all.

Original comment by TomR...@gmail.com on 9 Jan 2014 at 8:19

@GoogleCodeExporter
Copy link
Author

TomR: `mvn install -P 4.4` was not enough for me. I also had to go into the 
'maven-android-sdk-deployer/extras/compatibility-v4/' directory and run `mvn 
install` from there.

Original comment by antoine....@gmail.com on 15 Feb 2014 at 2:06

@GoogleCodeExporter
Copy link
Author

https://github.com/robolectric/robolectric explains how to resolve the 
support-v4 dependancy

Original comment by markreid...@gmail.com on 11 Jun 2014 at 9:02

@GoogleCodeExporter
Copy link
Author

I had to update the pom.xml so I didn't have to downgrade my SDK:
<android.v4.support.version>20.0.0</android.v4.support.version>
<android.v7.support.version>20.0.0</android.v7.support.version>

Original comment by Brot...@gmail.com on 14 Oct 2014 at 8:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant