processDebugManifest
/path/to/project/platforms/android/AndroidManifest.xml:31:5 Error:
Element uses-feature#android.hardware.camera at AndroidManifest.xml:31:5 duplicated with element declared at AndroidManifest.xml:27:5
/path/to/project/platforms/android/AndroidManifest.xml:32:5 Error:
Element uses-feature#android.hardware.camera.autofocus at AndroidManifest.xml:32:5 duplicated with element declared at AndroidManifest.xml:28:5
/path/to/project/platforms/android/AndroidManifest.xml:0:0 Error:
Validation failed, exiting
:processDebugManifest FAILED
.....
ERROR building one of the platforms: Error: /path/to/project/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Скомпилированный манифест при построении имеет следующее:
Я использую два разных плагина для Cordova, оба из которых имеют одинаковую функцию использования: один с android:required="false", а другой без него.
Это приводит к ошибке при сборке:
[code]processDebugManifest /path/to/project/platforms/android/AndroidManifest.xml:31:5 Error: Element uses-feature#android.hardware.camera at AndroidManifest.xml:31:5 duplicated with element declared at AndroidManifest.xml:27:5 /path/to/project/platforms/android/AndroidManifest.xml:32:5 Error: Element uses-feature#android.hardware.camera.autofocus at AndroidManifest.xml:32:5 duplicated with element declared at AndroidManifest.xml:28:5 /path/to/project/platforms/android/AndroidManifest.xml:0:0 Error: Validation failed, exiting :processDebugManifest FAILED ..... ERROR building one of the platforms: Error: /path/to/project/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project [/code]
Скомпилированный манифест при построении имеет следующее:
[code]...
... [/code]
Могу ли я что-нибудь сделать, чтобы это исправить?