jberkel/android-plugin — Issue #70: Java+Scala Project: Object app is not a member of package
Author: glenviewjeff
Created: 2011-10-12 19:30:19+00:00
State: open

I successfully built the Scala-only project template. Next, I tried to add some Java sources to my project and got the following error in TR.scala.

Any ideas what could be the cause? (it seems to me like sbt can't find the Android libraries now that I added Java sources for some reason.)

[info] Compiling 2 Scala sources and 5 Java sources to D:\Workspaces\MyProject\my-project\target\scala-2.9.0-1\classes...
[error] D:\Workspaces\MyProject\my-project\target\src_managed\main\scala\com\mydomain\myproject\TR.scala:2: object app is not a member of package com.mydomain.myproject.android
[error] import android.app.Activity
[error] ^
[error] D:\Workspaces\MyProject\my-project\target\src_managed\main\scala\com\mydomain\myproject\TR.scala:3: object view is not a member of package com.mydomain.myproject.android
[error] import android.view.View
[error] ^
[error] two errors found
[error] {file:/D:/Workspaces/MyProject/my-project/}My Project/compile:compile: Compilation failed
[error] Total time: 5 s, completed Oct 12, 2011 11:20:55 AM