HakAl / android-test-kit

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

Cannot build #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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