question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v. 1.5.0 compile errors in ClientComponent

See original GitHub issue

Summary

A fresh clone of the just-released 1.5.0 has numerous “cannot resolve symbol” errors in the ClientComponent interface, apparently due to missing dependencies.

Library version

1.5.0

Preconditions

Clone the master repository to a new Android Studio project

Steps to reproduce actual result

View the errors in the editor for the interface com.polidea.rxandroidble2.ClientComponent

Minimum code snippet reproducing the issue

N/A The @Module(subcomponents... in line 102 is in red, as are many of the @Provides and @Named annotations below it, as well as Module and Binds annotations.

Logs from the application running with setting RxBleLog.setLogLevel(RxBleLog.VERBOSE)

N/A

Actual result

Many compile errors

Expected result

no compile errors

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
RobLewiscommented, Mar 15, 2018

Perhaps the difference is that I am using Android Studio to clone the project from GitHub, whereas you presumably used git? It could then be a problem with Android Studio.

Attempting to reproduce it now:

  1. In Android Studio 3.0.1 (Mac), select File | New | Project from Version Control | GitHub and enter the URL (https://github.com/Polidea/RxAndroidBle.git) and click Clone.
  2. Android Studio reports “Unsupported Modules Detected: Compilation is not supported for the following modules: RxAndroidBle2 [the name I gave the Project folder]. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.”
  3. Then Android Studio logs “Gradle sync started”, then “Project setup started”, then the sync fails with a Null Pointer Exception.
  4. In the Project view sidebar (set to Android mode), the only folder that has a triangle (indicating it’s not empty, I suppose) is mockrxandroidble. It contains subfolders manifests and java.
  5. I select Build | Rebuild Project. It runs but there is no apparent change.
  6. I try File | Synchronize. Nothing happens. Same with Build | Clean Project.
  7. I try Build | Make Project. I get 200 errors: packages don’t exist, or can’t find symbol class (such as RxBleConnection).
  8. I close and reopen the project. Now the rxandroidble and sample folders show their contents, but not dagger-compiler-shadow or dagger-library-shadow. Opening up classes like ClientComponent in the editor gives the errors I originally described, I’m guessing because the dagger folders are apparently invisible.
  9. Closing and reopening the project again doesn’t change anything. Neither does Clean Project.
  10. I try again to close the project. This time, it is now missing from the File | Open Recent menu.

It seems likely that the problem is Android Studio failing for some reason to recognize the two Dagger folders. But I don’t know what to do about this. I’ll try it using git and see what happens.

0reactions
RobLewiscommented, Mar 16, 2018

@uKL I would like to reopen this but apparently I can’t since it was closed by you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to compile Play application with 1.5.0-RC1 · Issue #6400
Attempt to compile PLAY application. problem. Application does not compile, gives following error;. [error] stack trace is suppressed; run last ...
Read more >
Internal Compiler Error after upgrade Kotlin version to 1.5.30
After the Kotlin upgrade the project can't build anymore, the build process throws : Execution failed for task ':app:compileDebugKotlin'. > ...
Read more >
Compile error ESP32+BME688 dev kit - Page 3
Hi , I am integrating Bosch BME688+ESP32 feather board dev kit (8 sensors) on Arduino. I have worked on it for last coupel...
Read more >
Java Compile Errors/Warnings Preferences - IBM
When enabled, the compiler will issue an error or a warning whenever a static field or method is accessed with an expression receiver....
Read more >
Blazor Compile Error but Error List empty - Microsoft Q&A
Also the Error List stays empty. I love to know if I can do something about this (a minute ago I updated to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found