jberkel/android-plugin — Issue #95: sbt android project error: a module is not authorized to depend on itself
Author: glenviewjeff
Created: 2011-11-25 20:01:41+00:00
State: open

I first ran into this problem when trying to run the sbteclipse plugin and submitted [the issue there](https://github.com/typesafehub/sbteclipse/issues/55). 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](https://groups.google.com/d/msg/scala-on-android/L8koGAyM0fU/xCh3bCryBLUJ), 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```