nowinandroid
nowinandroid copied to clipboard
[Bug]: Showing "Unresolved reference: build" in build-logic:convention module
Is there an existing issue for this?
- [X] I have searched the existing issues
Is there a StackOverflow question about this issue?
- [X] I have searched StackOverflow
What happened?
The project builds and runs successfully but android studio shows errors in Plugin classes that uses imports under com.android.build package.
And also the namespace field in build.gradle.kts files also shows error.
Related issue closed last year
Attached screenshots of both errors.
Attached screenshots of issue
Relevant logcat output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@nabeelahamedk, please give details on your setup. Android Studio version, OS, stacktrace, Gradle scan, steps to reproduce etc. We've never been able to reproduce it, and this looks like an "environment" error we won't be able to fix.
Android Studio Hedgehog 2023.1.1 MacOS Sonoma 14.1.2
The builds are running fine. But the classes related to com.android.build package showing red underlines and showing unresolved reference.
The underlines are only showing if I open the files. And the Android Studio can't be able to import automatically.
Can you share your settings in File | Settings | Build, Execution, Deployment | Build Tools | Gradle?
Attached screenshot of settings.
Try to File | Invalidate caches, and if it still doesn't work, try File | Repair IDE.
@SimonMarquis Tried both but no result.
Then you might have to open a ticket on the Android Studio bug tracker (or +1 any already existing ticket related) as this bug is not directly related to this project.
@SimonMarquis Tried in a different project and Iguana canary version also but no result. I think I need to raise a ticket for Android Studio.