unable to build

4 posts, 0 answers
  1. Luka
    Luka avatar
    7 posts
    Member since:
    Oct 2014

    Posted 19 May 2015 Link to this post

    android Build Tooling revision 2015.5.17.1r
    Warning: BUILD FAILED
    /home/builder/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
    /home/builder/android-sdk-linux/tools/ant/build.xml:698: null returned: 1

    Total time: 2 seconds
    Error: /home/builder/BpcTooling/BuildScripts/node_build/node_modules/child-process-promise/node_modules/q/q.js:126
    throw e;
    ^
    "ant -f /tmp/builds/YsLdiB2TAum09dKaNH/app/build.xml -Dkey.store=/home/builder/BpcTooling/Cordova3//debug.keystore -Dkey.store.password=android -Dkey.alias=androiddebugkey -Dkey.alias.password=android release" failed with code 1
    Error: 'Build failed with error code 8'
    Done building project "MadbarzMobileApp.tmp.proj" -- FAILED.
  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 21 May 2015 Link to this post

    Hello Luka,

    It seems like there are missing lines in the pasted build log. However, I believe you are trying to integrate the latest version of the WIkitude plugin inside your application. Please, correct me if this is not so. I assume this, as I managed to reproduced the very same error by importing the latest version of the Wikitude plugin in an AppBuilder project and building it for Android. Googling a bit, I found this issue in the Wikitude plugin's repo. It seems like the latest version is only compatible with Cordova 4.0, which is coming in AppBuilder later this month. However, as a temporary workaround, you can download Wikitude v4.1.0-3.0.1, which is compatible with Cordova 3.7.

    I hope this helps.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Luka
    Luka avatar
    7 posts
    Member since:
    Oct 2014

    Posted 21 May 2015 in reply to Kaloyan Link to this post

    Problem is connected with html5video plugin and strange thing is that nothing missing from log.

    This is a log as is.

  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 25 May 2015 Link to this post

    Hi again Luka,

    Thank you for clarifying this. I reproduced the build error, by importing the jaeger25/Html5Video plugin inside an AppBuilder project. It seems that, the plugin relies on the Cordova Device plugin in order to work as expected. However, in its plugin.xml file the dependency tag consists of a wrong Device plugin id (this line). It needs to be changed as follows:
    <dependency id="org.apache.cordova.device" />

    The url property is also not needed as long as you have the Device plugin enabled from the Plugins tab in your project's Properties.

    In other words, the solution to the issue you are experiencing is to open the plugin.xml file under Plugins/Html5Video inside the AppBuilder's Project Navigator and there, change the following line:
    <dependency id="cordova-plugin-device" url="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" commit="master" subdir="." />
    to:
    <dependency id="org.apache.cordova.device" />

    Then, your Android builds should succeed again. I hope this helps.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top