This is a migrated thread and some comments may be shown as answers.

unable to build

3 Answers 204 Views
AppBuilder in-browser client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Luka
Top achievements
Rank 1
Luka asked on 19 May 2015, 01:34 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 21 May 2015, 03:00 PM
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.

 
0
Luka
Top achievements
Rank 1
answered on 21 May 2015, 03:12 PM

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

This is a log as is.

0
Kaloyan
Telerik team
answered on 25 May 2015, 02:41 PM
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.

 
Tags
AppBuilder in-browser client
Asked by
Luka
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Luka
Top achievements
Rank 1
Share this question
or