0

Android resource linking failed
C:\Users\Yoan\firebaseapp\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:49: AAPT: error: resource drawable/ic_stat_ic_notification (aka com.firebaseapp:drawable/ic_stat_ic_notification) not found.

AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
</manifest>

res folder: enter image description here

value folder:

enter image description here

strings.xml:

enter image description here

colors.xml:

enter image description here

styles.xml:

enter image description here

I read on couple of questions that if I have the first line in the .xml file twice I have to remove one, but what can I do in my case? I have it only once.

3 Answers3

1

It seems that you are missing a file named ic_stat_ic_notification in your project.

Open your project.
Goto android/app/src/main/res/drawable and check if you have a file with name ic_stat_ic_notification or not...
if unavailable please add a file with that name within the drawable folder.

Suggestion:-
I would suggest your app icon with that name to be added in the drawable folder(as the name of file contains notification do it might be a notification icon file).

1

I think what you need to do is add a new file to your drawable folder with the name ic_stat_ic_notification.png and then retry building the project.

I'd also suggest that you add a screenshot of your project structure to your original question so that we know what its contents are.

harshithdwivedi
  • 1,411
  • 16
  • 37
  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackoverflow.com/rooms/194821/discussion-on-answer-by-the-dagger-need-some-help-for-execution-failed-for-task). – Samuel Liew Jun 12 '19 at 11:10
0

A quick Google of that error message lead me to this other SO post: AAPT error: resource drawable/... not found which seems to mention some other potential reasons for getting this error in it's comments.

In particular, there is some talk about line ending mismatches that may apply to your situation? Other potential issues include not having the correct API version set, or missing files from your project.

Given your error specifically mentions com.firebaseapp:drawable/ic_stat_ic_notification, my guess is that it's the last issue (missing files from your project), have you got the firebase SDK/resources correctly added?

Glenn 'devalias' Grant
  • 1,928
  • 1
  • 21
  • 33
  • I saw that but I didn't understand what actually he did, if you can help ? –  Jun 11 '19 at 22:48