I ran into this very issue today morning and found the solution for it too. This issue is created when you have messed up one of your .xml files. I’ll suggest you go through them one by one and look for recent changes made. It might be caused by a silly mistake.
In my case, I accidentally hardcoded a color string as #FFFFF(Bad practice, I know). As you can see it had 5 F instead of 6. It didn’t show any warning but was the root of the same issue as encountered by you.
Edit 1: Another thing you can do is to run assembleDebug in your gradle console. It will find the specific line for you.
Edit 2: Adding an image for reference to run assembleDebug.

Related Posts:
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- Exception : AAPT2 error: check logs for details
- Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it”
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat
- Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- Android Studio Gradle DSL method not found: ‘android()’ — Error(17,0)
- “Gradle Version 2.10 is required.” Error
- Could not find method android() for arguments
- Draw a transparent circle onto a filled android canvas
- Can’t start Eclipse – Java was started but returned exit code=13
- Install an apk file from command prompt?
- Unity remote 5 not working
- recyclerview No adapter attached; skipping layout
- What are the possible reasons for NFC Service to become dead after some time?
- Simple Android RecyclerView example
- What is ‘Context’ on Android?
- Session ‘app’ error while installing APK
- Change project name on Android Studio
- Couldn’t load memtrack module Logcat Error
- react-native: command not found
- How to change the status bar color in Android?
- How to use putExtra() and getExtra() for string data
- How do I get the dialer to open with phone number displayed?
- RecyclerView vs. ListView
- Is there an equivalent to iOS’s Keychain for user credentials on Android?
- Is it possible to convert apk file to IPA file?
- How to: Install Plugin in Android Studio
- What does FrameLayout do?
- How to make a countdown timer in Android?
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- What’s LazyList?
- No Network Security Config specified, using platform default – Android Log
- Google Sceneform – Is it deprecated? Any replacement?
- getBluetoothService called with no BluetoothManagerCallback
- Android Studio: Unable to obtain result of ‘adb version’
- Android simple alert dialog
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
- How to pause / sleep thread or process in Android?
- com.android.ide.common.process.ProcessException: Failed to execute aapt! What can I do?
- Could not find com.android.tools.build:gradle:3.0.1
- Error message ‘java.net.SocketException: socket failed: EACCES (Permission denied)’
- How do you change the launcher logo of an app in Android Studio?
- “Bitmap too large to be uploaded into a texture”
- How to use su command over adb shell?
- How do you close/hide the Android soft keyboard programmatically?
- Picasso v/s Imageloader v/s Fresco vs Glide vs Coil
- Save bitmap to location
- Android : When do we use getIntent()?
- onActivityResult() not called
- How to resolve the “ADB server didn’t ACK” error?
- Custom Adapter for List View
- findViewByID returns null
- Android Intent Cannot resolve constructor
- Android Studio 1.2.1.1 – Failed to find style ‘textViewStyle’
- First run of Android Studio. Unable to access Android SDK add-on list
- How to implement onBackPressed() in Fragments?
- Get Value of a Edit Text field
- Does anyone know the what’s causing “Package name is not a valid package name” when adding a new layout?
- Android Studio doesn’t see device
- Static way to get ‘Context’ in Android?
- How to completely uninstall Android Studio from windows(v10)?
- DELETE_FAILED_INTERNAL_ERROR Error while Installing APK
- How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
- Failed to find Build Tools revision 23.0.1
- Running Node.Js on Android
- Android Device not recognized by adb
- How to inflate one view with a layout
- Delete child from firebase [duplicate]
- admob getting an ad response. ErrorCode: 0 Failed to load ad:0
- Android Studio – Company Domain Name
- What exactly does fitsSystemWindows do?
- Installing ADB on macOS [duplicate]
- How to authorize and accept ADB RSA key with broken touch screen on Android
- How to make layout with rounded corners..?
- Cannot resolve method getApplicationContext()
- Change Orientation of Bluestack : portrait/landscape mode
- Android Fragment no view found for ID?
- How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
- How to disable action bar permanently
- cannot resolve symbol ‘editText’
- Manifest Merger failed with multiple errors in Android Studio
- hardcoded string “row three”, should use @string resource
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- How to handle .tar.md5 files
- How to disable an Android button?
- Get JSON Data from URL Using Android?
- notifyDataSetChange not working from custom adapter
- Why am I getting Permission Denied when trying to push a Sqlite file to my rooted Android device?
- Scrollview can host only one direct child
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- Android studio- “SDK tools directory is missing”
- adb devices return error: protocol fault (no status)
- How to get text from EditText?
- android.widget.Switch – on/off event listener?
- SDK Location not found in android studio
- Failed to load AppCompat ActionBar with unknown error in android studio