Start a new topic

Wikitude in Monaca build fails

Wikitude in Monaca build fails


Hi,

we don't support Monaca official, so we can't fully guide you on this. However your log output seems like that you have minSDK 14 defined, which is not enough for Wikitude SDK. Try to increase Android minSDK and try to rebuild. Also there seems to be a conflict in the manifest file, which you need to resolve:

Attribute application@label value=(Minimum Template(*)) from AndroidManifest.xml:5:83

is also present at :wikitudesdk::13:9 value=(@string/app_name)

 

Cheers

Phil

I followed the steps in  http://www.wikitude.com/developer/documentation/phonegap and build in Monaca.io

Uploaded the plug-in also 

I am getting the build fails with following build error 

 

Temporary folder: /private/tmp/monaca/578fd0b6fd1734c567e24ce2

Downloading project

Download complete

Running for 5.2

plugin add mobi.monaca.plugins.Monaca

No ALTQ support in kernel

ALTQ related functions disabled

pfctl: pf already enabled

Fetching plugin "mobi.monaca.plugins.Monaca" via npm

Installing "mobi.monaca.plugins.Monaca" for android

No ALTQ support in kernel

ALTQ related functions disabled

pf disabled

plugin add com.wikitude.phonegap.WikitudePlugin

No ALTQ support in kernel

ALTQ related functions disabled

pf enabled

Installing "com.wikitude.phonegap.WikitudePlugin" for android

 

            Have fun using world's first AR plugin for PhoneGap. Visit http://www.wikitude.com/developer/documentation/phonegap for detailed documentation for the plugin.

            

            Make sure that you enter your Wikitude SDK trial license key in `WikitudePlugin.js` line 12. If you havent bought a license please visit http://www.wikitude.com/store.

            

            If you want to contribute to the open source project, please visit us at github, http://github.com/Wikitude

        

No ALTQ support in kernel

ALTQ related functions disabled

pf disabled

plugin add cordova-plugin-whitelist@1.0.0

No ALTQ support in kernel

ALTQ related functions disabled

pf enabled

Fetching plugin "cordova-plugin-whitelist@1.0.0" via npm

Installing "cordova-plugin-whitelist" for android

No ALTQ support in kernel

ALTQ related functions disabled

pf disabled

plugin add cordova-plugin-splashscreen@2.1.0

No ALTQ support in kernel

ALTQ related functions disabled

pf enabled

Fetching plugin "cordova-plugin-splashscreen@2.1.0" via npm

Installing "cordova-plugin-splashscreen" for android

No ALTQ support in kernel

ALTQ related functions disabled

pf disabled

Project has 4 plugins.

4 plugins has been installed.

No ALTQ support in kernel

ALTQ related functions disabled

pf enabled

Running command: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/hooks/after_prepare/monaca_enterprise_android.js /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton

No ALTQ support in kernel

ALTQ related functions disabled

pf disabled

No ALTQ support in kernel

ALTQ related functions disabled

pf enabled

Running command: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/cordova/build --debug

ANDROID_HOME=/Applications/android-sdk-macosx

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home

Running: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/gradlew cdvBuildDebug -b /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/build.gradle -Dorg.gradle.daemon=true

:preBuild

:compileDebugNdk

:preDebugBuild

:checkDebugManifest

:CordovaLib:compileLint

:CordovaLib:copyDebugLint UP-TO-DATE

:CordovaLib:mergeDebugProguardFiles

:CordovaLib:preBuild

:CordovaLib:preDebugBuild

:CordovaLib:checkDebugManifest

:CordovaLib:prepareDebugDependencies

:CordovaLib:compileDebugAidl

:CordovaLib:compileDebugRenderscript

:CordovaLib:generateDebugBuildConfig

:CordovaLib:generateDebugAssets UP-TO-DATE

:CordovaLib:mergeDebugAssets

:CordovaLib:generateDebugResValues

:CordovaLib:generateDebugResources

:CordovaLib:packageDebugResources

:CordovaLib:processDebugManifest

:CordovaLib:processDebugResources

:CordovaLib:generateDebugSources

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:compileDebugJava

:CordovaLib:processDebugJavaRes UP-TO-DATE

:CordovaLib:packageDebugJar

:CordovaLib:compileDebugNdk

:CordovaLib:packageDebugJniLibs UP-TO-DATE

:CordovaLib:packageDebugLocalJar UP-TO-DATE

:CordovaLib:packageDebugRenderscript UP-TO-DATE

:CordovaLib:bundleDebug

:prepareAndroidCordovaLibUnspecifiedDebugLibrary

:preReleaseBuild

:CordovaLib:copyReleaseLint UP-TO-DATE

:CordovaLib:mergeReleaseProguardFiles

:CordovaLib:preReleaseBuild

:CordovaLib:checkReleaseManifest

:CordovaLib:prepareReleaseDependencies

:CordovaLib:compileReleaseAidl

:CordovaLib:compileReleaseRenderscript

:CordovaLib:generateReleaseBuildConfig

:CordovaLib:generateReleaseAssets UP-TO-DATE

:CordovaLib:mergeReleaseAssets

:CordovaLib:generateReleaseResValues

:CordovaLib:generateReleaseResources

:CordovaLib:packageReleaseResources

:CordovaLib:processReleaseManifest

:CordovaLib:processReleaseResources

:CordovaLib:generateReleaseSources

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:compileReleaseJava

:CordovaLib:processReleaseJavaRes UP-TO-DATE

:CordovaLib:packageReleaseJar

:CordovaLib:compileReleaseNdk

:CordovaLib:packageReleaseJniLibs UP-TO-DATE

:CordovaLib:packageReleaseLocalJar UP-TO-DATE

:CordovaLib:packageReleaseRenderscript UP-TO-DATE

:CordovaLib:bundleRelease

:prepareWikitudesdkLibrary

:prepareDebugDependencies

:compileDebugAidl

:compileDebugRenderscript

:generateDebugBuildConfig

:generateDebugAssets UP-TO-DATE

:mergeDebugAssets

:generateDebugResValues

:generateDebugResources

:mergeDebugResources

/private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/AndroidManifest.xml:5:83 Error:

Attribute application@label value=(Minimum Template(*)) from AndroidManifest.xml:5:83

is also present at :wikitudesdk::13:9 value=(@string/app_name)

Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:5:5 to override

/private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/AndroidManifest.xml:19:5 Error:

uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/build/intermediates/exploded-aar/wikitudesdk/AndroidManifest.xml

Suggestion: use tools:overrideLibrary="com.wikitude.architectandlib" to force usage

:processDebugManifest FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':processDebugManifest'.

> Manifest merger failed with multiple errors, see logs

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 4.757 secs

 

/private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/cordova/node_modules/q/q.js:126

                    throw e;

                          ^

Error code 1 for command: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/gradlew with args: cdvBuildDebug,-b,/private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/build.gradle,-Dorg.gradle.daemon=true

ERROR building one of the platforms: Error: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/cordova/build: Command failed with exit code 8

You may not have the required environment or OS to build this project

Error: /private/tmp/monaca/578fd0b6fd1734c567e24ce2/android/skeleton/platforms/android/cordova/build: Command failed with exit code 8

    at ChildProcess.whenDone (/data/monaca_build_module/5.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)

    at ChildProcess.emit (events.js:98:17)

    at maybeClose (child_process.js:755:16)

    at Process.ChildProcess._handle.onexit (child_process.js:822:5)

Build error: Error building project source code

 

 

Kindly suggest me what i am missing here.

 

Thank you 

Regards

Waheed
Login or Signup to post a comment