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