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

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

Open drhr opened this issue 11 years ago • 3 comments

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?

drhr avatar Jun 24 '13 18:06 drhr

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")

nob13 avatar Jun 26 '13 15:06 nob13

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.

DavidTheBugWriter avatar Jul 25 '13 21:07 DavidTheBugWriter

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

oconnor663 avatar Aug 04 '13 17:08 oconnor663