Can't Repro
Status Update
Comments
au...@google.com <au...@google.com>
di...@google.com <di...@google.com> #2
Is there any updates? This is a big problem!
ha...@gmail.com <ha...@gmail.com> #3
Hi there - could you provide more context on the issue & a sample project to reproduce? Database locked exceptions are quite difficult to pinpoint without a repro project. Thanks!
ha...@gmail.com <ha...@gmail.com> #4
Hi. It is reproduceable on some users by using this code:
suspend fun <R> MyDatabase.workaroundWithTransaction(block: suspend TransactionScope<R>.() -> R) {
useWriterConnection {
it.immediateTransaction(block)
}
// TODO: Temporally fix https://issuetracker.google.com/issues/340606803#comment2
// Manually triggers invalidation
invalidationTracker.refreshAsync()
}
di...@google.com <di...@google.com>
sp...@gmail.com <sp...@gmail.com> #6
Hi. Please merge the pull request. This is big problem!
hu...@google.com <hu...@google.com> #7
Hi. Is there any updates on this problem?
vi...@google.com <vi...@google.com>
xa...@google.com <xa...@google.com> #8
Hi, I updated my version to alpha12 but still have these crashes. Please release a fix asap.
an...@google.com <an...@google.com> #9
Will there be fixes released this Wednesday?
Description
OS Linux(amd64) v4.15.0-20-generic unknown, screens 1920x1080
Android Gradle Plugin: 3.2.0-alpha14
Gradle: 4.6
After refactoring a project to use AndroidX using the built-in refactor tool, the Android Studio UI shows errors when trying to pass 'new' AndroidX classes to library dependencies that accept the 'old' Support classes. Building the project succeeds.
The errors are gone after deleting the './idea/libraries' folder and doing a Gradle sync.
For example, rxbinding-design originally depends on 'com.android.support:design'.
Trying to pass a 'com.google.android.material.snackbar.Snackbar' to 'RxSnackbar.dismisses` shows the following error in the AS UI:
Type mismatch.
Required: android.support.design.widget.Snackbar
Found: com.google.android.material.snackbar.Snackbar
The attached image shows both the error in the UI and the fact that compilation succeeds.
Steps to reproduce:
1. Extract and open attached project in AS 3.2 Canary 14
2. Open the file 'app/src/main/java/com/example/issuerepro/Foo.kt' and observe there are no errors
3. Refactor > Refactor to AndroidX... > Do Refactor
4. Observe changes are made to Foo.kt and app/build.gradle amongst others, but no Gradle sync is executed
5. Perform a Gradle sync
6. Observe the above error on the line 'RxSnackbar.dismisses(snackbar)'
- Optionally build the project and observe no errors, yet the UI error remains
7. Delete the folder '.idea/libraries' and perform a Gradle sync
8. Observe all errors are gone in Foo.kt