OpenTracksApp / OpenTracks

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
1.06k stars 190 forks source link

Bindings in red color in Android Studio #905

Closed vsevjednom-cz closed 3 years ago

vsevjednom-cz commented 3 years ago

Describe the bug Android Studio shows *Binding in red color. Everything still works without problem 🤪.

To Reproduce

  1. Get project version: https://github.com/OpenTracksApp/OpenTracks
  2. Click to the AboutActivity for example.
  3. de.dennisguse.opentracks.databinding and AboutBinding are in red color with this error: Package not found: de.dennisguse.opentracks.databinding
  4. But error is gone if you replace JavaVersion.VERSION_11 with JavaVersion.VERSION_1_8 in build.gradle - I figured it out after too much testing.

Technical information

Or is this some problem on my side?

dennisguse commented 3 years ago

I don't know/ Somehow AndroidStudio is not figuring (somtimes) that this code is autogenerated...

You can try to Build -> Rebuild Project.

I also have this sometime :man_shrugging:

vsevjednom-cz commented 3 years ago

This is some problem in Android studio with Java 11: https://issuetracker.google.com/issues/180946610 🤪

rgmf commented 3 years ago

This is some problem in Android studio with Java 11: https://issuetracker.google.com/issues/180946610 zany_face

Same issue with Android Studio Arctic Fox 2020.3.1... so waiting for a new Studio release. It's not a problem for developing but an it's a little bit uncomfortable.