enter image description here
#SerializedName highlighted in red
The compilation is successful.
Invalidate Caches/restart doesn't help
dependencies are connected
Tell me what could be the problem?
You're using an older version of GSON. To solve your problem, make sure that you're using version 2.8.8.
Add this to your build.gradle,
implementation 'com.google.code.gson:gson:2.8.8'
Related
I've build a complete empty Project and I got this error:
e: This version (1.0.0-alpha13) of the Compose Compiler requires Kotlin version 1.4.30 but you appear to be using Kotlin version 1.4.32 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck but don't say I didn't warn you!).
What can I do? (Sorry for this dumb question, but I'm complete new to Kotlin)
Thanks, Boothosh
You can go to Plugins in the IDE settings and uninstall the Kotlin one there, and do Install From Disk (under the gear icon) and use one of these: https://plugins.jetbrains.com/plugin/6954-kotlin/versions - you'd probably need to update your gradle files too (I haven't done any of this before so I can't tell you if it works or if you'll run into problems)
Why not just use a newer version of Compose though? They're up to beta 6 now - I can't even see an alpha 13 listed! Seems like a better idea all round, unless there's a really specific reason you need that version you're using?
I have the situation shown the following picture.
Project built successfully, but it's just annoying to see the red error warning.
How do I solve it?
Please Invalidate Caches and restart your IDE
The naming of the file also counts, remove all hyphens if there are any
Sometimes I'm seeing same picture. Gradle sync or Android studio restart helps me.
I do not remember the exact version, but about from 3.2, the lint processing of Android studio has become dreadful.
ctrl + b won't work for about 5min after putting the code, and red lines which are supposed to indicate unwritten methods or wrong referencing is completely broken.
I never had such issue on the previous versions, and I don't know what to do with this. I looked through stackoverflow with the tag android-studio, but no one seems to have the same issue, or I'm selecting the wrong keyword for this.
But, all three of my colleagues are having the same issue from a certain version of Android studio.
Is this an issue with vmOption? Please help.
I've just updated my Android Studio to 3.2 version. In my html layout I see that some ids are red and message is cannot resolve symbol '#id/...
As you can see at the picture, element with the not resolved id is declared just above. App builds without any problem.
Any ideas about fix?
Easiest way I have found to deal with this is to close the project and re-import it.
File -> Close Project
Import Project(Gradle, Eclipse ADT, etc.)
This bug drives me absolutely insane. I hope this helps someone else!
I want to watch android sources code, but Android Studio has so many errors in base Android code. How do I fix these?
Since no one has jumped in here to help with this...
The longer answer here is that the imports (in red) are failing because Android Studio can't find them. So all the calls made to those libraries are failing. So ALL your code after that is full of errors.
For instance, the android.annotation.ColorInt seems to be broken. A quick Google search provides THIS: https://developer.android.com/reference/android/support/annotation/ColorInt.html
Which tells me that the reason that dependency is broken is because whatever you have there is deprecated and should now use a new reference.
Continue with this sort of research and your problem is solved.