gradle-android-scala-plugin icon indicating copy to clipboard operation
gradle-android-scala-plugin copied to clipboard

:compileDebugScala: R class not available to scala compiler

Open ge0rg opened this issue 5 years ago • 0 comments

I'm using version 3.3.1 of the plugin fork by @AllBus (https://github.com/AllBus/gradle-android-scala-plugin), which doesn't have its own issue tracker.

Apparently, the R.java file gets generated prior to the build, but is not considered by the scala compiler because it's stored in build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r:

src/AprsService.scala:147: not found: value R
                                        getString(R.string.service_once)

My workaround is to symlink the R.java file into the source dir, but as there are different paths for debug and release builds, I'm going to end up in hell for that.

ge0rg avatar Mar 16 '19 18:03 ge0rg