I need to add android dependencies manually to gradle caches directory, as the gradle build can not get it but I can download it from my browser. This is the error:
> Could not find aapt2-7.0.4-7396180-osx.jar (com.android.tools.build:aapt2:7.0.4-7396180).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.0.4-7396180/aapt2-7.0.4-7396180-osx.jar
I manually downloaded aapt2-7.0.4-7396180-osx.jar file and put it in the following directory:
username/.gradle/caches/modules-2/files-2.1/com.android.tools.build/aapt2/7.0.4-7396180/18ae77ce0ff3ba9da85e4674c2c92751cd1dc973/
I found the directory name: "18ae77ce0ff3ba9da85e4674c2c92751cd1dc973" from this command:
shasum aapt2-7.0.4-7396180-osx.jar
After this, I run the gradle build again, But I got the same error again and the build process tries to download the library and did not noticed that I have already downloaded it. Should I do anything else to let the build process know that this file is already downloaded?