cancel
Showing results for 
Search instead for 
Did you mean: 

Android Manifest merger failed with multiple errors using SAP mobile platform sdk

former_member601277
Discoverer
0 Kudos

Hello,

I am following SAP Mobile Platform Native SDK for Android platform (https://help.sap.com/doc/29b9b25ee01c42f58cb028c6e8456c7c/3.1/en-US/Documents/Android/index.html).

As per the steps I have added all jar and aar files in libs folder, then tried to compile.

But received below error.Can any body help to resolved this issue.

Attribute receiver#com.sap.smp.client.android.federation.FederationClient$CheckDeviceForClientsReceiver@permission at AndroidManifest.xml:20:9-30:20 requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
AndroidManifest.xml Error:
Attribute receiver#com.sap.smp.client.android.federation.FederationClient$GetCertificateReceiver@permission at AndroidManifest.xml requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
\AndroidManifest.xml Error:
Attribute receiver#com.sap.smp.client.android.federation.FederationClient$UpdateCertificateReceiver@permission at AndroidManifest.xml requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
\AndroidManifest.xml Error:
Attribute receiver#com.sap.smp.client.android.federation.FederationClient$DeleteCertificateReceiver@permission at AndroidManifest.xml requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
\AndroidManifest.xml Error:
Attribute receiver#com.sap.smp.client.android.federation.FederationClient$CheckClientDataVaultPasswordReceiver@permission at AndroidManifest.xml requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
\AndroidManifest.xml:14:19-47 Error:
Attribute permission#${federation_permission_namespace}.FEDERATION_PERMISSION@name at AndroidManifest.xml:14:19-47 requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
\AndroidManifest.xml:17:10-57 Error:
Attribute uses-permission#${federation_permission_namespace}.FEDERATION_PERMISSION@name at AndroidManifest.xml:17:10-57 requires a placeholder substitution but no value for <federation_permission_namespace> is provided.
:app:processDebugManifest

Accepted Solutions (0)

Answers (1)

Answers (1)

grabz
Employee
Employee
0 Kudos

I could reproduce this with SMP SDK 3.1 Native SDK SP01PL03, but here's how I could solve it:

  1. add this line to your app's build.gradle:
manifestPlaceholders = [federation_permission_namespace: "com.yourCompanyName.yourOrganizationName.yourDevelopmentProjectsGroupID"]
  1. set the source and target compatibility to 1.8 under File -> Project Structure
  2. add these to the end of the android {} section in the app's build.gradle
packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'org/apache/http/version.properties'
    exclude 'org/bouncycastle/x509/CertPathReviewerMessages_de.properties'
    exclude 'org/bouncycastle/x509/CertPathReviewerMessages.properties'
}

The relevant SAP Note which contains this info is this: 2731065 - SMP Native SDK 3.1 SP01 PL03

Ákos

grabz
Employee
Employee
0 Kudos

One update. The value of com.yourCompanyName.yourOrganizationName.yourDevelopmentProjectsGroupID should be something that you as a developer use for your projects which uses a common certificate which is signed by you. See more details in the SAP Note above.