-
Notifications
You must be signed in to change notification settings - Fork 576
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
Problem updating the sample project #713
Comments
I updated all the dependencies and then noticed that the following classes are also generating errors: |
After updating the project it appears that I'm down to a single error: "Cannot resolve symbol 'DaggerClientComponent'" in the class |
Hello Rob! |
After updating the project it appears that I'm down to a single error: "Cannot resolve symbol 'DaggerClientComponent'" in the class |
Sorry, but I don't know what "shadowed in this project" means. Could you briefly explain? |
Shadowed i.e. renaming a library's original package so multiple copies of this library could be used in a single application without a package clash (which may lead to runtime crashes if newer version of the lib is not backwards compatible). This was an issue quite a long time ago. |
Damn, now it seems we're headed down a rabbit hole because I don't know what a "package clash" is. Here's my best guess: can you confirm/deny/explain?
I'm sure I have more questions, but this will do for now. I appreciate any help! (I realize that questions like this might be better for Stack Overflow, but any quick tips might solve my problem.) |
Correct. If in newer version of the library breaking change will appear then all dependencies that used this library as their dependency will stop working.
Correct. There is a "Shadow" library I linked in the previous post which does this renaming. I did not do the setup but it seems to be automatic — only the source code needs to have references to shadowed classes (which get generated only after project will build successfully) and Android Studio does not always pick them up correctly
Correct. |
With e8fdb96 this problem should finally be a thing of the past 🎉 |
Describe the bug
Attempt to update my sample project from the GitHub repository gives errors.
To Reproduce
Have an old copy of the sample project in local Android Studio.
Attempt to update project from GitHub.
Expected behavior
An error-free project should be created.
Actual behavior
RxBleGattCallback
has compiler errors:import bleshadow.…
statements give "Cannot resolve symbolbleshadow
" errors(l. 59):
return Observable.error(bleGattException);
gives error that required type isandroid.database.Observable<?>
; provided type isio.reactivex.Observable
(l. 288):
errorMapper
function is the wrong type(l. 302):
disconnectionRouter
is the wrong type(l. 309):
getOnConnectionStateChange
is the wrong type(l. 314 and several following): cannot resolve method
delay
in Observable(l. 329):
getOnCharacteristicChanged
is the wrong typeAdditional context
Android Studio v. 4.0.1
The text was updated successfully, but these errors were encountered: