Comments (8)
It looks like you are using sbt 0.11.0, which the plugin has not yet been published for.
In sbt 0.11.0, the new way to add a plugin dependency is, in project/plugins/build.sbt
:
addSbtPlugin("org" % "name" % "version")
Follow the Hacking on the plugin guide on the README, and try again. This should resolve your issue.
from android-plugin.
sorry it's all a bit messy at the moment with different versions of sbt floating around, different versions of the plugin, unpublished snapshots and so on. i hope it will all stabilise soon.
from android-plugin.
i added a sbt_011 branch to the giter8 template:
$ g8 jberkel/android-app -b sbt-0_11
from android-plugin.
Thanks!
from android-plugin.
hope everything works now, i updated the README
from android-plugin.
Still fails for me. Do I need to update g8 or do some other update? See below:
$ g8.bat jberkel/android-app -b sbt-0_11
Template for Android apps in Scala
package [my.android.project]: com.zoomabug.neverforget
name [My Android Project]: Never Forget
main_activity [MainActivity]: MainMenuActivity
api_level [10]: 9
Applied jberkel/android-app.g8 in never-forget
$ sbt
[info] Loading project definition from D:\Workspaces\NeverForget\never-forget\project\plugins
[info] Updating {file:/D:/Workspaces/NeverForget/never-forget/project/plugins/}default-c389a1...
[warn] module not found: org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT
[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.0/0.6.0-SNAPSHOT/ivys/ivy.xml
[warn] -- artifact org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT!sbt-android-plugin.jar:
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-android-plugin/scala_2.9.1/sbt_0.11.0/0.6.0-SNAPSHOT/jars/sbt-android-plugin.jar
[warn] ==== local: tried
[warn] C:\Users\Jeff.ivy2/local/org.scala-tools.sbt/sbt-android-plugin/scala_2.9.1/sbt_0.11.0/0.6.0-SNAPSHOT/ivys/ivy.xml
[warn] -- artifact org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT!sbt-android-plugin.jar:
[warn] C:\Users\Jeff.ivy2/local/org.scala-tools.sbt/sbt-android-plugin/scala_2.9.1/sbt_0.11.0/0.6.0-SNAPSHOT/jars/sbt-android-plugin.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt-android-plugin_2.9.1_0.11.0/0.6.0-SNAPSHOT/sbt-android-plugin-0.6.0-SNAPSHOT.pom
[warn] -- artifact org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT!sbt-android-plugin.jar:
[warn] http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt-android-plugin_2.9.1_0.11.0/0.6.0-SNAPSHOT/sbt-android-plugin-0.6.0-SNAPSHOT.jar
[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.0/0.6.0-SNAPSHOT/sbt-android-plugin-0.6.0-SNAPSHOT.pom
[warn] -- artifact org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT!sbt-android-plugin.jar:
[warn] http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt-android-plugin_2.9.1_0.11.0/0.6.0-SNAPSHOT/sbt-android-plugin-0.6.0-SNAPSHOT.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT: 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-SNAPSHOT (sbtVersion=0.11.0, scalaVersion=2.9.1)
[warn]
[error] {file:/D:/Workspaces/NeverForget/never-forget/project/plugins/}default-c389a1/*:update: sbt.ResolveException: unresolved dependency: org.scala-tools.sbt#sbt-android-plugin;0.6.0-SNAPSHOT: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
from android-plugin.
did you do a publish-local
with sbt_011 ?
from android-plugin.
Thanks, this fixed it. It wasn't clear that this was still necessary after the sbt_011 branch was added. I also added an explicit step on the README to clarify.
from android-plugin.
Related Issues (20)
- Scala 2.10.0 sbtPlugin HOT 1
- github integration obsolete
- Consuming android library projects from local file system (rather than maven repository) HOT 1
- Proguard problem scala 2.10 HOT 1
- Working with an android scala project? HOT 3
- Problem hacking on the plugin HOT 6
- Test dependencies aren't included in output apks. HOT 1
- Native Libraries are not included HOT 7
- Running sbt 'gen-idea no-classifiers' produces errors HOT 3
- 0.7 SNAPSHOT, ProGuard: include native method names by default HOT 5
- unresolved dependencies after update to sbt 0.13
- Support for aapt --rename-manifest-package HOT 2
- Compiler warnings in TR.scala HOT 1
- 0.7.1-SNAPSHOT: invalid /system/etc/permissions/scala-library-2.10.1.xml
- aapt not found [cause bad path in plugin] HOT 1
- Excess write HOT 4
- Complicated use of macro packages with android-plugin
- Missing Android SDK should be warning, or checked only when really needed.
- System keyring integration for apk signing HOT 4
- Is this still in use/maintained? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-plugin.