Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:compileDebugScala: R class not available to scala compiler #94

Open
ge0rg opened this issue Mar 16, 2019 · 0 comments
Open

:compileDebugScala: R class not available to scala compiler #94

ge0rg opened this issue Mar 16, 2019 · 0 comments

Comments

@ge0rg
Copy link

ge0rg commented Mar 16, 2019

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 added a commit to ge0rg/aprsdroid that referenced this issue Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant