google / blockly-android

Blockly for Android
Apache License 2.0
672 stars 209 forks source link

"resource style/BlocklyTheme not found" when using blocklylib-vertical:0.9-beta.20180709 from bintray #736

Closed AnmAtAnm closed 5 years ago

AnmAtAnm commented 5 years ago

In blocklydemo/build.gradle, replace

dependencies {
    ...
    implementation project(':blocklylib-vertical')
}

with

    implementation 'com.google.blockly.android:blocklylib-vertical:0.9-beta.20180709'

and the build fails with error:

error: resource style/BlocklyTheme (aka com.google.blockly.demo:style/BlocklyTheme) not found.

It also fails when using api and the deprecated compile instead of implementation. The same is true with 20180427 release, but the build succeeds with 20171003.

The latter indicates this will require a new release to solve (and maybe intermediate releases to test/debug), once the correct gradle 4 dependency commands are identified.

AnmAtAnm commented 5 years ago

737 sort of resolves the issue by rolling back one instance of api back to the deprecated compile. That compile needs to be replaced again with something that is not deprecated.