When I try to launch my app in Android Studio emulator I get this error:
Could not find com.android.tools.build:aapt2:3.3.2-5309881.
Searched in the following locations:
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881.pom
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881-windows.jar
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881.pom
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881-windows.jar
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881.pom
- file:/C:/Users/jalal/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881-windows.jar
- https://jitpack.io/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881.pom
- https://jitpack.io/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881-windows.jar
- https://jcenter.bintray.com/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881.pom
- https://jcenter.bintray.com/com/android/tools/build/aapt2/3.3.2-5309881/aapt2-3.3.2-5309881-windows.jar
Required by:
project :app
Hi, I solved this way.. in the project directory
android>build.gradle
classpath 'com.android.tools.build:gradle:3.0.1'
android>app>build.gradle
android {
buildToolsVersion "28.0.3"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With