Marketing & Advertising Magazine

Android: Fixing the Could Not Find Com.android.tools.build:aapt… Error

Posted on the 05 February 2019 by Techzog

You import a project in the new version of Android Studio and get the following error (while running or building)

Could not find com.android.tools.build:aapt2:3.3.0-5013011.
Searched in the following locations:
...
Required by:
project :app

The solution is simple. Simply go to your project's build.gradle file and add the below lines:

Your build.gradle file should now be:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}

Hope this solution helped you. If it did, consider leaving us a link from your blog.

    Android: Fixing the Could not find com.android.tools.build:aapt… Error

    Comment Policy: Comments adding value to the article are encouraged. Relevant links will be allowed in such comments. Comments left solely for spamming links will be deleted. Thank you for understanding.


Back to Featured Articles on Logo Paperblog