Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Running sbt 'gen-idea no-classifiers' produces errors #180

Open
drhr opened this issue Jun 24, 2013 · 3 comments
Open

Running sbt 'gen-idea no-classifiers' produces errors #180

drhr opened this issue Jun 24, 2013 · 3 comments

Comments

@drhr
Copy link

drhr commented Jun 24, 2013

I set up a project and ran this command in the top level alongside the "project" directory, and a few errors printed in the command line:

[error] Not a valid key: gen-idea
[error] gen-idea no-classifiers
[error] ^

I have no doubts that I'm doing something wrong, could anyone clue me in to what that might be?

@nob13
Copy link

nob13 commented Jun 26, 2013

Seems like you have to add the gen idea plugin to your project/plugins.sbt:
// place a newline in here
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0")

@DavidTheBugWriter
Copy link

I have the same problem:
I create a dummy project with
"~/bin/g8 jberkel/android-app"

then

in my plugins.sbt I have:

"
resolvers += Resolver.url("scalasbt releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("org.scala-sbt" % "sbt-android-plugin" % "0.6.2")

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0")
"
and I get the same error as OP.

@oconnor663
Copy link

nob13's workaround fixed the issue for me. Sounds like this line should be included in the giter8 template?

I also had to work around a recent issue with the Android SDK moving the path to aapt (https://code.google.com/p/maven-android-plugin/issues/detail?id=377&sort=-id&colspec=ID%20Type%20Component%20OpSys%20Status%20Priority%20Milestone%20Owner%20Summary). The symbolic links in that report worked for me:

cd $ANDROID_HOME/platform-tools
ln -s ../build-tools/17.0.0/aapt aapt
ln -s ../build-tools/17.0.0/lib lib
ln -s ../build-tools/17.0.0/aidl aidl

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

No branches or pull requests

4 participants