Krishna Dhas
Krishna Dhas

Reputation: 33

How to solve Android resource linking failed error (xml/shortcuts) not found?

App showing below error app directly run emulator or device scenario. but generate apk no issue occurred. already working good but suddenly this issue occurred

Execution failed for task ':app:processPatientDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed

i tries change kotlin version and also invalidate caches in android studio option and also try delete build folder

Execution failed for task ':app:processPatientDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed /home/kbytez/project/xxxxxxx/app/build/intermediates/packaged_manifests/patientDebug/AndroidManifest.xml:184: error: resource xml/shortcuts (aka com.xxxxx.patient:xml/shortcuts) not found. /home/kbytez/project/xxxx/app/build/intermediates/packaged_manifests/patientDebug/AndroidManifest.xml:189: error: resource string/app_id_value (aka com.xxxxx.patient:string/app_id_value) not found. error: failed processing manifest.shortcut available

Upvotes: 1

Views: 5400

Answers (1)

Istis
Istis

Reputation: 266

And you want to use shortcuts or not? If yes - check if you have shortcuts.xml in res/xml folder and if you have

<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />

in your manifest file, in <activity> section, the same where you have

 <action android:name="android.intent.action.MAIN" />

If not - check your manifest and remove above code, if you have it.

Upvotes: 1

Related Questions