After installing nativescript-mediafilepicker my app doesn't built (tns error 0) and shows an error stating there is a conflict in the manifest files of camera and nativescript-mediafilepicker. I cannot find these plugin manifest files. The error:
C:\Users\Jokro\Software\NativeScript\mappi\platforms\android\app\src\main\AndroidManifest.xml:19:17-55 Error:
Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/provider_paths) from [:nativescript_camera:] AndroidManifest.xml:19:17-55
is also present at [:MultiTypeFilePicker-release:] AndroidManifest.xml:46:17-51 value=(@xml/file_paths).
Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.
FAILURE: Build failed with an exception.
I ran tns plugin add nativescript-mediafilepicker, removed and reinstalled android and ran in VS, Then the following error turned up:
C:\Users\Jokro\Software\NativeScript\mappi\platforms\android\app\src\main\AndroidManifest.xml:19:17-55 Error:
Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/provider_paths) from [:nativescript_camera:] AndroidManifest.xml:19:17-55
is also present at [:MultiTypeFilePicker-release:] AndroidManifest.xml:46:17-51 value=(@xml/file_paths).
Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/provider_paths) from [:nativescript_camera:] AndroidManifest.xml:19:17-55
is also present at [:MultiTypeFilePicker-release:] AndroidManifest.xml:46:17-51 value=(@xml/file_paths).
Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.
@jokro commented on Tue Jan 22 2019
FAILURE: Build failed with an exception. I ran tns plugin add nativescript-mediafilepicker, removed and reinstalled android and ran in VS, Then the following error turned up: C:\Users\Jokro\Software\NativeScript\mappi\platforms\android\app\src\main\AndroidManifest.xml:19:17-55 Error:
FAILURE: Build failed with an exception.
My manifest contains 43 lines of code:
Rule 19 contains:
I replaced this and the previous two lines by:
**`
The error still exists.
In directory nodemodules/nativescript-mediafilepicker i looked for a second AndroidManifest.xml, but can't find any.
pakage.json of camera contains:
"_from": "nativescript-camera", "_id": "nativescript-camera@4.1.1", "_inBundle": false, "_integrity": "sha512-yqUUiW5/18LahuMr0RwZkfRBYNCsrRsxiV4/xGSWrNXa7HFD5a6olLiQj/mzGVjX+dyOyQhWPXJ0ZfZ4JDve4A==", "_location": "/nativescript-camera", "_phantomChildren": {}, "_requested": { "type": "tag", "registry": true, "raw": "nativescript-camera", "name": "nativescript-camera", "escapedName": "nativescript-camera", "rawSpec": "", "saveSpec": null, "fetchSpec": "latest" }, "_requiredBy": [ "#USER", "/" ], "_resolved": "https://registry.npmjs.org/nativescript-camera/-/nativescript-camera-4.1.1.tgz", "_shasum": "b68135327280654bd05d041eb08152b36be23f82", "_spec": "nativescript-camera", "_where": "C:\Users\Jokro\Software\NativeScript\mappi", "author": { "name": "NativeScript team" }, "bugs": { "url": "https://github.com/NativeScript/nativescript-camera/issues" }, "bundleDependencies": false, "dependencies": { "nativescript-permissions": "^1.2.3" }, "deprecated": false, "description": "Provides API for using device camera", "devDependencies": { "prompt": "^1.0.0", "rimraf": "^2.6.2", "tns-core-modules": "^5.0.1", "tns-platform-declarations": "^5.0.0", "tslint": "~5.11.0", "typescript": "~2.8.2" }, "homepage": "https://github.com/NativeScript/nativescript-camera#readme", "keywords": [ "NativeScript", "JavaScript", "Android", "iOS", "camera", "gallery", "images" ], "license": "Apache-2.0", "main": "camera", "name": "nativescript-camera", "nativescript": { "platforms": { "android": "3.0.0", "ios": "3.0.0"
mediafilepicker has json file with:
What can be the problem ? If I deinstall mediafilepicker all works ok.