android-plugin icon indicating copy to clipboard operation
android-plugin copied to clipboard

Unresolved Dependencies

Open slashmili opened this issue 13 years ago • 4 comments
trafficstars

Hi, I followed wiki pages but I got "Unresolved Dependencies" error env : sbtVersion=0.11.2, scalaVersion=2.9.1

after running ~/bin/g8 jberkel/android-app and giving information I tried :

$ sbt
[warn] Using project/plugins/ is deprecated for plugin configuration (/tmp/zenroid/project/plugins).
[warn] Put .sbt plugin definitions directly in project/,
[warn]   .scala plugin definitions in project/project/,
[warn]   and remove the project/plugins/ directory.
.
.
.

[info] Resolving org.scala-tools.sbt#sbt-android-plugin;0.6.0 ...
[warn]  module not found: org.scala-tools.sbt#sbt-android-plugin;0.6.0
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-android-plugin/scala_2.9.1/sbt_0.11.2/0.6.0/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /home/milad/.ivy2/local/org.scala-tools.sbt/sbt-android-plugin/scala_2.9.1/sbt_0.11.2/0.6.0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt-android-plugin_2.9.1_0.11.2/0.6.0/sbt-android-plugin-0.6.0.pom
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn]   http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt-android-plugin_2.9.1_0.11.2/0.6.0/sbt-android-plugin-0.6.0.pom
.
.
.

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-tools.sbt#sbt-android-plugin;0.6.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      org.scala-tools.sbt:sbt-android-plugin:0.6.0 (sbtVersion=0.11.2, scalaVersion=2.9.1)
[warn] 
[error] {file:/tmp/zenroid/project/plugins/}default-2274cc/*:update: sbt.ResolveException: unresolved dependency: org.scala-tools.sbt#sbt-android-plugin;0.6.0: not

do you have any clue how can I fix it ?

slashmili avatar Nov 28 '11 08:11 slashmili

+1, I'm having this issue too

tdrhq avatar Dec 03 '11 21:12 tdrhq

if you are stuck in this step for now, you can clone code and run

sbt publish-local and use

addSbtPlugin("org.scala-tools.sbt" % "sbt-android-plugin" % "0.6.1-SNAPSHOT") in your build.sbt

slashmili avatar Dec 06 '11 10:12 slashmili

I noticed the same issue when using a SBT version greater than 0.11.3.. You can fix it by modifying (or adding if it doesn't exist) the project/build.properties file to include "sbt.version=0.11.3" without the quotes.

The problem boils down to the repository only having compiled versions of the plugin that work with 0.11.2 and 0.11.3 of SBT. http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt-android-plugin/scala_2.9.1/

Hope this saves someone the time I lost figuring it out :)

barriem avatar Aug 14 '12 16:08 barriem

Thanks pleasle for the fix! It would a pain to install another version of sbt just for this issue!

pligor avatar Sep 13 '12 08:09 pligor