小编yas*_*ash的帖子

how to fix aapt2 error in android Studio 4.1.1?

few days ago i deleted the whole gradle file and installed it again manually introduced its path to android studio 4.1.1 and created a project to test

fortunately gradle worked fine but when i tried to run app on emulator a red goddamn error appears that doesn't let me sleep for 3 days

Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
   > Could not find aapt2-4.1.1-6503028-linux.jar (com.android.tools.build:aapt2:4.1.1-6503028).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/4.1.1-6503028/aapt2-4.1.1-6503028-linux.jar

Possible …
Run Code Online (Sandbox Code Playgroud)

android maven kotlin android-studio android-gradle-plugin

5
推荐指数
1
解决办法
2053
查看次数