Fixed: Lint found fatal errors while assembling a release target- Android Studio

Today I got an error in Android studio while generating a release APK, “Lint found fatal errors while assembling a release target”. Although App is running successfully in Debug mode. This error happens when we have some issues in some XML files or some other issue not allowing the APK to build. We have the following ways to solve this error.

How to Fix Lint found fatal errors

Android studio shows all build errors in html & xml file present at the following link. The best way to solve this error is, just open that file in your browser, check the error and fix it.

For that navigate to the following file & open it in the browser.

- Advertisement -
/YOUR_APPLICATION/app/build/reports/lint-results-release-fatal.html

Lint found fatal errors

When I opened the file in my browser I have seen the following error report. In my scenario, we can see I have an error in my XML file. In your scenario, the error can be different. Just trace your error and try to fix it.

Lint found fatal errors fixed 1

In Android Studio, you can also use Analyze > Inspect Code menu option to manually run inspections. Inspection Results window. Here you find the official Android documentation.

Alternative Solution-

There is another way to suppress the lint warnings by adding below code into your build.gradle file as Android Studio suggested. But it’s not recommended.

android {
  lintOptions {
    checkReleaseBuilds false
    abortOnError false
  }
}

Related articles

Exploring the Future’s Top Programming Languages

In the ever-evolving world of technology, programming languages play...

Why should you teach coding to your children? Benefits of Coding

Nowadays, even before they can count, kids learn how...

7 Best Ludo Earning Apps to Win Extra Money

Have you been thinking about how you can make...

Best Selling Products

Sale!

15000+ ChatGPT Prompts to Boost Your Business

Original price was: ₹2,500.00.Current price is: ₹99.00.
Sale!

900GB+ Premium Graphics Assets Bundle- All Editable Files

Original price was: ₹84,000.00.Current price is: ₹990.00.
Sale!

CorelDRAW 2024- Vector Illustration & Graphic Design Software

Original price was: ₹54,000.00.Current price is: ₹899.00.
Sale!

35000+ Festival & Business PNG Images Biggest Bundle

Original price was: ₹29,000.00.Current price is: ₹3,000.00.
Abhay Pratap Singh
Abhay Pratap Singhhttps://www.itechcube.com
Abhay Pratap Singh is Digital Entrepreneur, Who is Making Money From the Internet since 2012. He Also Works as a Freelancer and Does Web and Mobile app Development. Apart from That, He Invests in Stock Market and Crypto Currencies. Here in iTechCube, Writes about Blogging, WordPress Guides, and Tutorials to help begginers.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Select your currency
INR Indian rupee