Android Studio won´t show any errors - android-studio

Suddenly Android Studio stopped showing inline errors. Even when there´s a missing import. I have tried the following:
1- Clean Project
2- Rebuild project
3- Invalidate cache and restart
4- Check if the power save mode is on
5- Resync the Gradle
6- Delete the .gradle and .idea folder
7- Delete the .iml and .idea folder
8- Reinstall Android Studio
I don´t know what else I could try.
Need some help

The problem was that I had installed the Android ButterKnife Zelezny plugin. Besides that it didn´t work at all, it somehow disabled the inline errors functionality in Android Studio.

Related

How to fix "synce failed"

My android studio worked fine but now I always have this message when I start it:
C:\Users\GERA.gradle\caches\4.6\file-changes\last-build.bin (Access is denied)
Also my files tree looks diferent now and Java files are not blue anymore.
This is a Android studio level problem, not only one project.
How to fix that?
Go to File-> Invalidate caches / Restart
remove .gradle folder
Restart Android Studio
Gradle build succeed
Rebuild project

Unknown Attribute Android: error on Android STUDIO 3.2.1

Things i have done to resolve this issue:
Clean Build & Rebuild
Deleted .idea file
Invalidated Caches/ Restart.. option
Turn On Power Save Mode.
SDk is up to date.
Sync Project with Gradle Files done.
Reinstall Android Studio done
recreate new project done
changed something in app Gradle file and synced the project again
android studio old version change also not help
Intellij shows to reset to default namespace, it will delete android namespace..
(In Project, Layout file corrections not reflecting into app)
Android Studio Version
Error Image
gradle image
Intelij Solution
This worked for me
Close Android studio
Delete all files from
C:\Users\.AndroidStudio3.2\system\caches
C:\Users\.AndroidStudio3.2\config //not importent
start android studio
Ran into the same issue. Seems to be something specifically related to Android Studio 3.2. My solution on Windows was to delete everything withing the cache/ folder in the .AndroidStudio3.2/ folder.
This problem happen for Android studio Cache & History.
Firstly In android studio go File -> Close Project and Exit Android Studio.
Then Delete below 2 Folders:
C:\Users\user-name.AndroidStudio3.X\system\caches
C:\Users\user-name.AndroidStudio3.X\config\terminal\history (optional)
Open the Android Studio and Enjoy!
Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...

Android studio location of caches/generated sources

I have switched to using Android Studio 3.1 RC2. I have detected that when I switch branches, I am running across generated sources from other branch. They still show up even if I do Build -> Clean Project. Or manually delete build folders in all my modules as well as top level build folder.
Only way to rectify this is delete .gradle folder in my project directory and my $HOME/.gradle , this is very time consuming.
Where does Android Studio keep its caches of generated files. I have tried Android Studio's clean "Invalidate Caches/Restart" without much help.
You can use
./gradlew cleanBuildCache
to clean up all caches under HOME/.gradle
See: https://developer.android.com/studio/build/build-cache.html

Why is Android studio not automatically cleaning my project

I recently renamed my project by closing Android Studio, renaming the root project directory then opening A.S again.
A.S names the project using the new directory name, then I open it. A new .iml file is created with the new name. I deleted the old one and cleaned the project.
Everything went fine but now when I build it just deploys the app instead of cleaning it first. I have to manually clean it and it's annoying.
Is there a setting that might have gotten messed up?
Platform Details: Android Studio 3.0.1, Windows 10
Ok. So, apparently if you add flavors to your project then you have to manually clean the project otherwise when you build, Android Studio will launch the previous APK.

Android Studio project files not showing up

I have a library project in Android Studio that has been working fine, but today I went to work on it and all of the files are missing except for a few git files. The folders/files are there when I look in the project's folder on my hard drive, they just aren't displaying in Android Studio. Here is a screenshot:
I tried reinstalling and updating Android Studio, but it didn't work. Any ideas as to what is going on here? How can I fix it?
Try Import Project... and navigate to your project. Select build.gradle file.
Be sure to wait for a while, so that android studios can load all your stuff. Sometimes a restart will help, but since you reinstalled it, that shouldn't be the problem.
Go to File > Project Structure > Project Settings > Modules.
Click on the green colored + and add new module. select Application module and set the content root to your project module.
Click next and then finish.
This should do the trick and the complete project structure will appear. It worked for me.
I had to Sync Project with Gradle Files in Android Studio to get my files back after they disappeared in Android Studio's Project window.
Go to
File > Project Structure> click on + > then set it to android
Go to:
File > Sync Project with Gradle files.
It will show up all the files linked with the gradle.
You can reset the IDE configurations by removing the configurations folder manually.
First close your project in Android Studio
In the project's root folder run:
rm -r .idea
Open your project again.
In my case i have a slash in the subproject
settings.gradle
As an example, this did not work:
include ":somedir/library"
But changing it to this fixed it:
include ":somedir-library"
project(":somedir-library").projectDir = new File(settingsDir, "somedir/library")
In my case, it was because of the NDK version
In my case only File -> Invalidate Caches / Restart... works.

Resources