e: file:///F:/kotlin%20project/FoodApps/app/src/ma...
# compose
n
e: file///F/kotlin%20project/FoodApps/app/src/main/java/com/example/foodapps/prasentation/signupscreen/SignUpScreen.kt1117 Unresolved reference 'Text'. e: file///F/kotlin%20project/FoodApps/app/src/main/java/com/example/foodapps/prasentation/signupscreen/SignUpScreen.kt1329 Unresolved reference 'MaterialTheme'. e: file///F/kotlin%20project/FoodApps/app/src/main/java/com/example/foodapps/prasentation/signupscreen/SignUpScreen.kt1429 Unresolved reference 'MaterialTheme'. Text , MaterialTheme ,it's working in another file whereas it's not work in SignUpScreen . why i am getting this error could help me
c
You need to
import
them
And please don’t post screenshots of text. They are hard to read on mobile devices and most of the time lack relevant information.
n
but import is not showing when i am clicking alt + enter
🤷🏼 1
yup
it's Android studio issue ?
c
Just write it yourself. Or copy from the other file.
n
write myself
c
I mean write the import in the code yourself. You cannot always rely on the IDE helping you 😉
Have you tried „Turning it off and on again“? 😁
There is also a „repair IDE“ option in Android studio
n
Have you tried „Turning it off and on again“? i am not aware
i know repair IDE
c
> Have you tried „Turning it off and on again“? It’s sarcastic from IT people that get stupid question from non-tech people to just try to switch something off an on again which usually fixes the problem. In your case - restart Android studio.
n
i am doing restart android studio and repair IDE
still not working
c
Then open an issue on the Android studio issue tracker. Your request now is off-topic here in a Kotlin related workspace.
a
It looks to me like maybe you didn't sync your project with your gradle-files to download the compose-dependencies (but on the other hand, the editor should have marked those errors in the code). Anyway, have you tried syncing the project with gradle files?
c
On opening Android studio it will do a sync automatically. As well as the „repair IDE“ in one step does the sync. So I guess that’s not the issue.
💡 1
n
yes
i did sync
still i am facing same issue
Unable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so, libdatastore_shared_counter.so. perhaps this issue
do you know what was the issue ? @Chrimaeon @Arne Jans ?
image.png
1. Power Save Mode Enabled:Problem: Power Save Mode disables many background IDE features, including inspections and intention actions. ◦ Solution: Go to
File
->
Power Save Mode
. Make sure it is unchecked.
💡 1
j
I also have this problem, it has been happening since i updated to Meerkat, also on Patch1