android-plugin
android-plugin copied to clipboard
Running sbt 'gen-idea no-classifiers' produces errors
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?
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")
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.
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