jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

sbt android project error: a module is not authorized to depend on itself #95

Closed glenviewjeff closed 13 years ago

glenviewjeff commented 13 years ago

I first ran into this problem when trying to run the sbteclipse plugin and submitted the issue there. However, I see it causes problems when trying to use and run a standard test project with the android-plugin.

sbt tests/android:package-debug [info] Updating {file:/D:/Workspace/my-project/}tests... [error] a module is not authorized to depend on itself: my-project#my-project_2.9.0-1;0.1

If you actually want to use a test project and run tests, thanks to this thread, I learned that you can just change the name of the test project like this:

settings = General.settings ++ AndroidTest.androidSettings ++ Seq( name := "MyScalaProjectTest", ... ) dependsOn main