scala-android / sbt-android-protify

Live-coding and hot-deploy for Android
Apache License 2.0
136 stars 8 forks source link

type GradleBuild is not a member of package android #6

Closed ChaitanyaPramod closed 9 years ago

ChaitanyaPramod commented 9 years ago

I am having trouble setting this up on a gradle android project of mine.

I'm stuck at this, and retry doesn't help

info] Loading project definition from /Users/ChaitanyaPramod/projects/android-client/project
[info] Compiling 1 Scala source to /Users/ChaitanyaPramod/projects/android-client/project/target/scala-2.10/sbt-0.13/classes...
[error] /Users/ChaitanyaPramod/projects/android-client/project/gradle.scala:1: type GradleBuild is not a member of package android
[error] object Build extends android.GradleBuild
[error]                              ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? 

I'm on Mac El Capitan, with sbt 0.13.9

pfn commented 9 years ago

you haven't added addSbtPlugin("com.hanhuy.sbt" % "android-gradle-build" % "1.1.3") into project/plugins.sbt

ChaitanyaPramod commented 9 years ago

Yes, just realized that myself. We should be appending to the file instead (I see you've already made that change)