You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/29 23:07:47 UTC

[GitHub] [cordova-android] distinctdan opened a new issue #702: Build is broken when using edit-config for "android:" attribute

distinctdan opened a new issue #702: Build is broken when using edit-config for "android:" attribute
URL: https://github.com/apache/cordova-android/issues/702
 
 
   # Bug Report
   
   I'm using an `edit-config` block to set the orientation of my app. It looks like this:
   ```
   <edit-config file="AndroidManifest.xml"
                target="/manifest/application/activity[@android:name='MainActivity']"
                mode="merge">
       <activity android:screenOrientation="landscape"></activity>
   </edit-config>
   ```
   It edits `AndroidManifest` correctly, but building produces the error:
   ```
   Android resource compilation failed
   /orbs/cordova/platforms/android/app/src/main/res/xml/config.xml:51: error: unbound prefix.
   ```
   
   The issue is that cordova or something isn't adding the android namespace to the outputted widget, so the `android:` prefix is causing it to error. I've even tried adding the namespace to the widget manually, but it gets overwritten. It's the same problem described in this thread on the custom-config plugin: https://github.com/dpa99c/cordova-custom-config/issues/24. 
   
   ### Version information
   Cordova CLI: 9.0.0
   Cordova-android: 8.0.0
   Cordova-ios: 5.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org