A problem was found with the configuration of task ':app:compileDebugJavaWithJavac'.
File 'C:\Users\Anoushk\AndroidStudioProjects\crud_app\build\app\intermediates\annotation_processor_list\debug\annotationProcessors.json' specified for property 'processorListFile' does not exist.
I solved this issues by deleteing the .gradle file in the android folder in the project file
Just delete the .GRADLE file in the ANDROIDPROJECTFILE - - locate the project folder and delete the .gradle file and rebuild
Related
I am trying to rebuild an old (working) project in AndroidStudio. It builds Ok but strangely, the project's build.gradle is not visible in the AS Project tab.
Note that the module's build.gradle appears but not the project's build.gradle.
Both files ARE indeed there
Directory of C:\dev\AndroidProjects\apps\Passwords\app
11/09/2020 04:16 PM 767 build.gradle
1 File(s) 767 bytes
Directory of C:\dev\AndroidProjects\apps\Passwords
11/09/2020 03:13 PM 352 build.gradle
1 File(s) 352 bytes
The project otherwise builds just fine.
The projects build.gradle IS active: If I make changes to it outside AS using a text editor, the changes DO take effect.
What I've Tried:
Restart PC and AS
Cleaned/Rebuilt Project
Invalidate Caches & Restart
Searched SO for problem. Question 47406517 was similar but solution didn't work
Copy build.gradle from another known-good project.
Notes:
Android Studio: V3.6.3
PC: Win10-64
Project Name: "Passwords"
I'm at a loss for other things to try. Any suggestions?
(I guess as a work-around, I can always use an external text editor but that's annoying).
I found the answer in SO question #46230078. The solution was simple: Close AndroidStudio, delete the directory ".idea" from the project directory, restart AndroidStudio. This did it!
I had the build/make error
Error:null value in entry: resOutputDir=null
when building my project in AdroidStudio
The solution was to simply delete the .gradle folder in the root directory. (backup to make sure you don't blow something up).
answer found here: https://discuss.gradle.org/t/null-value-in-entry-dependencycachedir-null/19191/3
I have solved this and other Gradle build errors by executing the menu sequence: "Build > Clean Project".
I stuck in the problem like this. What I done is; Delete the .Gradle Folder From the Project File in the Project location.
Then Built and Clean the Project. I searched a lot on Google but the Solution I got from a blog is...
Delete .Gradle Folder -> Clean->Built
In my case I had a typo in the variable. domain instead of Domain.
I create a Android Studio project which is located in the folder E:\Android_Studio_Project\MessageCleanup
I hope to backup the project by myself.
I think that all files located in the folder E:\Android_Studio_Project\MessageCleanup\app\build\outputs\apk can be ignore, is it right?
And more, are there other files which can be ignored? Thanks!
you can ignore:
.gradle
.idea
app/build
build
local.properties
you could ignore
.gitignore (if you don't use git or dont want to exclude files from git)
The rest I would try to keep.
In Android Studio, I wanted to rename the root directory. There was no way to do this within Android Studio, so I exited AS and renamed the folder and then opened the project again. But when I went to run the app, it indicates:
AndroidManifest.xm does not exist or has incorrect root tag
The manifest does exist, but apparently something breaks by renaming the file. I tried invalidating the cache but that didn't help.
Closing the project and then removing it from the list and then reimporting the project as a non-Android project corrected the problem. Still, this seems to be a hack. It should be possible to rename the root folder without having to take this approach.
Im using Back Track r3 and android studio 0.8.6, every time i start a project i get
"Gradle project refresh failed - cause error in opening zip file"
error message, what can i do to fix it?
update:
after trying to delete /gradle folder in plugins
this is what i get.
only more errors i cant rebuild the project
Delete everything in the .gradle directory in your home directory, and also the .gradle directory in your project, and rebuild.
The rebuild will take some time because it will need to re-download a bunch of Gradle and project dependencies, but I think one of those has become corrupted.
Old, but had it today on a react native generated project :
so I deleted the content of the gradle dir at the root (myproject-dir/android/gradle) of the android project -> it redownloaded everything, and it was fine !
Hope this will help someone.