How to stop sync gradle on assets file

hi,
i use Android Studio Chipmunk | 2021.2.1 Patch 2 and gradle 7.4 build 7.2.2.

I got a file in the assets directoriy and there is alway an information bar that said:
This file is not ârt of the project. Please include it in the appropriate build file(build gradle,CMakeListor android.mk etc) and sync project.

The problem is new whit the last android studio version.

So i need to remove this file to be part of the gradle processus. Because any time i what to modified or copy/paste there is a procees that use 50% of the CPU. For every lettre inserted.

Gradle resync every time. it is boring.

I cannot really fully follow what you are saying.
But it very much sounds like you are not talking about Gradle, but about a misbehavior in Android Studio when it too often syncs the Gradle build, so you should probably head to Android Studio maintainers instead.

i said that the file in assets directory should not be part of any check at all, except for virus.

So, why this check and it is possible to remove that gradle check from somewhere.

From what you wrote it sounds to me like Android Studio is doing the check and complains, not Gradle.
But I never have seen something similar.
Could of course also be some Android quirk, Android is always a bit special.

i would use some other word for android. But i will stay polite. :rofl:

1 Like