Android libraries stopped working after the latest updates - java

I recently updated android studio and it's plugins, and all was working properly. But suddenly this happened and i can see how to solve. The app runs, but there are some unexpected behaviours. Tried to sync gradle, uninstall and reinstall the updates and nothing seems to work.
Activity.java for example

just remove your imports and make sure that they are importing from androidX
or enable auto-import from android studio setting and let it import it for you.

Related

Changing org.gradle.jvmargs Value

before a while, I was able to work on android studio project with the gradle property set to
org.gradle.jvmargs=-Xmx1536m.
suddenly now, for a reason I don't realize I Can't sync gradle files unless I set it to Xmx-1024m
so I cleaned all android files and uninstalled the jdk and android studio and gradle files then reinstalled all, the problem still exists.
what's the problem exactly? and what's happening when doing this change

Android Studio - Some of the features are not working

I have a problem with Android Studio. It does not show any error(If has) on some classes or show error even if there is not an error but application compiles succesfuly. Also refactoring not working sometimes.
Things I tried:
Removed Android Studio cache.
Invalidate caches and restart.
Installing JDK, Android Studio, SDK again.
Installing operating system again.
None of them solved my problem. Weird thing is code inspection works on some classes but not working on some classes. I have to write without auto import etc. It works like a simple notepad. On the other hand, sometimes I can not copy or remove any text on the program. Are the any solution for this problem?
You won't believe me It happened to me while even using it with MAC and different project.
Android Studio not showing any error.
Refactoring not working
Android Studio logs
Full Log Here:
Full Log
The piece that interests me:
Part of log
Added kotlin support for Android studio, problem solved.

android studio can't find java sdk after invalidate caches... even after reinstall

I had minor problems in a project I was working on and use invalidate caches and clean to see if that would help. However that did something not just to that one project but to android studio in general. it does not recognize java, the appearance of even the home screen has changed. I can't start any new projects in java and none of the old work. Strangely, even after I uninstalled both studio and java and then reinstalled the same problem persists.
incompatibility between the Android Studio cache and your current project layout. If you suspect this is the problem, then select File> Cache / Restart> Validate and Restart from the Android Studio toolbar.
To set JDK location: you can see this video: https://www.youtube.com/watch?v=jA97GYqRODE
Try to clear Android Studio cache, assuming you're using v3.3, delete the cache folder located at:
C:\Users\your_username\.AndroidStudio3.3\system\caches

Old projects won't render on a newly installed Android Studio

I recently reformatted my computer and when I reinstalled Android Studio and its packages and tried to run my previous projects it said it can't render properly.
What should I do to resolve this?
Also, the file structure doesn't show on the left hand side of Android Studio.
I managed to fix it by importing the old projects to android studio.

Android Studio 0.8.10 resource issues

I'm experiencing issues with the latest Android Studio update to 0.8.10. I opened my existing project and now all code references to my resources (values, dimens, images, etc) are not properly linked any more. See the example below.
Example
Steps i've tried so far
Build > Rebuilt Project
Build > Clean Project
Restarting Android Studio
Re-importing the project
Sync Project with Gradle
Im looking to see if anyone else has had these issues and if there is a possible workaround / fix.
Looks like updating to the latest Canary build (0.8.11) fixes these issues. Also updating to the latest android gradle plugin (0.12) helped too.

Categories

Resources