Showing results for 
Search instead for 
Did you mean: 

xdk android build and the config.xml file from construct 2 ?


i'm using c2 to made html5 games / apps

and intel xdk to build an android apk ... i would like to know how can i just let lines related to android with the config.xml (remove all ios related)

here is my .xml file

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="" xmlns:gap="" id="" version="1.4">

    <description>fidget spinner simulator</description>
    <author href="" email="-------">MATRIXREAL</author>

    <icon src="icon-128.png" width="128" height="128" />
    <icon src="icon-256.png" width="256" height="256" gap:role="default" />

    <preference name="permissions" value="none"/>
    <preference name="android-targetSdkVersion" value="21" />

    <feature name=""/>
    <plugin name="cordova-plugin-media" source="npm" />

    <preference name="orientation" value="portrait" />
    <preference name="fullscreen" value="true" />
    <gap:config-file platform="ios" parent="UIStatusBarHidden"><true/></gap:config-file>
    <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance"><false/></gap:config-file>

    <preference name="deployment-target" value="8.0" />
    <preference name="android-minSdkVersion" value="16" />
    <plugin name="cordova-plugin-crosswalk-webview" source="npm" />

    <plugin name="cordova-plugin-wkwebview-engine" />
    <plugin name="cordova-plugin-file" />
    <plugin name="cordova-plugin-httpd" />

    <plugin name="cordova-plugin-whitelist" source="npm" />
    <access origin="*" />

    <plugin name="cordova-plugin-inappbrowser" source="npm" />

    <!-- Optional splash screen image, e.g.: -->
    <!-- <gap:splash src="splash.png" width="1024" height="768" /> -->


all that lines related to some infos are already on intel xdk project info like android-targetSdkVersion and orientation and fullscreen etc

also we did tick the crosswalk optimizing so we dont need <plugin name="cordova-plugin-crosswalk-webview" source="npm" />

also i did install the whitelist, inappbrowser and media plugin in the plugin tab so do i need to remove those lines related too or i must keep them ?

thank you


Tags (2)
0 Kudos
3 Replies

I'm not sure what you are asking. Are you asking if you should take some of the lines from the config.xml that is exported by Construct2 (which is what you're showing above) and add them to the Intel XDK config.xml file? Construct2 generates a <project-name>.xdk file that can be opened by the XDK and which contains all the settings equivalent to what you find in the Construct2 generated config.xml file. If you use that approach to export from C2 and import into the XDK, there is nothing you need to get from the C2 config.xml file.

Perhaps I am misunderstanding what you are asking. Please rephrase your question in your native language so I can translate to English with Google Translate. Writing in your native language will allow you to describe in more detail what you want to do, making it easier for me to understand what you are asking.


i just want to clean up the config.xml from c2 and used it for intel xdk


In that case I recommend you import the <project-name>.xdk file that C2 generates and export using the Cordova Build Package tool. Then you'll get the best starting point for a config.xml file and complete Cordova CLI project. Everything in the C2 exported config.xml file is already in that <project-name>.xdk file, and what you get from the Cordova Build Package tool is more complete.

Use the process described here > < to import a C2 project into the XDK.