Search code examples
androidgitandroid-studioandroid-gradle-pluginandroid-sdk-tools

Android Studio broke down Error:error: package xxx does not exist, error: cannot find symbol class


Android Studio broke down after merge in git this is the correct path but Android studio thinks otherwise

I tried everything, any advice ? the path is valid, on another computer the same repository working

ofc i made hard reset git,checkout, i tryed Invalidate caches

enter image description here

also sometimes have same like this: Android Studio marks R in red with error message "cannot resolve symbol R", but build succeeds


Solution

  • Clone the project again and build the project if possible