cancel
Showing results for 
Search instead for 
Did you mean: 

Error during Installation of SAP Hybrid Application Toolkit 1.22.2

0 Kudos

Hallo,

during the upgrade to HAT 1.22.2 the attached error occurs while building the companion app. I think it is related to the KAPSEL loggger-plugin. I followed exactly the installation guide and installed all relevant components and versions as described in the guide. To crosscheck whether the error occurs only during update (previous HAT-Versions installed without error) I installed a fresh Windows box in a VM and installed new from scratch there. Also there the error occured:

------------

:processDebugManifestC:\_SAPHAT1222\WebIdeCompanion\companionapp\CompanionApp\platforms\android\AndroidManifest.xml:51:9-53:20 Error:
Element provider#android.support.v4.content.FileProvider at AndroidManifest.xml:51:9-53:20 duplicated with element declared at AndroidManifest.xml:37:9-39:20
C:\_SAPHAT1222\WebIdeCompanion\companionapp\CompanionApp\platforms\android\AndroidManifest.xml Error:
Validation failed, exiting

------------

Here are the versions I use:

Node.JS 5.41, Cordova 6.11, SDK SP13 PL9 (SWDC-download), JDK 1.8.2.111, all updated Android SDK-components

Thanks for any advise, best regards

Alexander Koch

0 Kudos

Hi, Alexander, I have met exactly the same problem, is this solved now?

0 Kudos

Hi George, no not yet unfortunately. And as you also may have seen, there are posts in other groups or blogs describing the same problem. Best regards, Alexander

0 Kudos

Hi, Alexander, thank you for the reply. I copied and pasted the corresponding codes in the AndroidManifest.xml. The main problem is the same value of property "android:name". Hope someone can fix this as soon as possible.

<provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider>

<provider android:authorities="com.sap.ide.companion.KapselLogger" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/logfilepaths" /> </provider>

Best regards, George

Accepted Solutions (0)

Answers (4)

Answers (4)

jamie_cawley
Advisor
Advisor
0 Kudos

The errors you are showing are related to the companion app. If needed you can download the app from

https://play.google.com/store/apps/details?id=com.sap.ide.pubcompanion

and use HAT normally to build apps. Version 1.23 is set to be released mid to late next week.

Regards,

Jamie

SAP - Technology RIG

0 Kudos

Hallo all,

is there a possible solution to this Problem yet or has anyone Version 1.22.2 up and running? If, yes I would be happy to know all the used component Versions (KAPSEL SDK, Cordova,...) and the proper configuration of Android SDK for - at least for me - it doesn´t work as described in the Installation guide.

Thanks in advance,

best regards Alexander

0 Kudos

Thanks for the answer,

all Anrdoid-SDK-components are up to date, so are the build-tools. I installed (and updated) all components as stated in the images shown before starting the installation procedure.

Best regards,

Alexander

jamie_cawley
Advisor
Advisor
0 Kudos

Try updating the sdk build tools for android.

Regards,

Jamie

SAP - Technology RIG