Wikitude / wikitude-cordova-plugin

Wikitude's Augmented Reality Plugin for Cordova - working together with the Wikitude SDK library for Android and iOS. Provides image recognition and tracking, geo-based augmente reality and 3D rendering and animations in an augmented reality scene
https://www.wikitude.com
Other
199 stars 181 forks source link

I want to use by installing it in Monaca. #94

Closed Sieg-sol-fried closed 9 years ago

Sieg-sol-fried commented 9 years ago

We would like to use the latest version of Wikitude in Monaca. We had used the past version of Wikitude by building successfully. However, the upgrade version caused build error and we can not build. The last versions which is successfully built are "iOS":"4.1.0" and "Android":"4.0.0" Thank you.

Temporary folder: /private/tmp/monaca/FakeProjectId
Downloading project
Download complete
Running for 4.1
Installing "mobi.monaca.plugins.Monaca" for android
cordova version not detected (lacks script "/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.inappbrowser" for android
cordova version not detected (lacks script "/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.media" for android
Fetching plugin "org.apache.cordova.file" via plugin registry
npm http GET http://registry.cordova.io/org.apache.cordova.file
npm http 304 http://registry.cordova.io/org.apache.cordova.file
Installing "org.apache.cordova.file" for android
Installing "org.apache.cordova.vibration" for android
Installing "mobi.monaca.plugins.WebIntent" for android
cordova version not detected (lacks script "/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.dialogs" for android
Plugin "org.apache.cordova.file" already installed on android.
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.globalization" for android
Installing "org.apache.cordova.file-transfer" for android
Installing "com.wikitude.phonegap.WikitudePlugin" for android
cordova version not detected (lacks script "/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/version" ), continuing.

            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

Running command: /private/tmp/monaca/FakeProjectId/android/skeleton/hooks/after_prepare/monaca_enterprise_encrypt.js /private/tmp/monaca/FakeProjectId/android/skeleton
Running command: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/build --release
Buildfile: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/build.xml

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /Applications/adt-bundle-mac/sdk

-setup:
     [echo] Project Name: MainActivity
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for MainActivity...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/res
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/rsObj
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/rsLibs
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-gen
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/classes
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for MainActivity...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /Applications/adt-bundle-mac/sdk

-setup:
     [echo] Project Name: MainActivity
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for MainActivity...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/res
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/libs
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/res
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/rsObj
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/rsLibs
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-gen
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/classes
    [mkdir] Created dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for MainActivity...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 93 source files to /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [echo] Creating library output jar file...
      [jar] Building jar: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/classes.jar

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/res
   [crunch] To destination dir: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:
     [echo] 
[propertyfile] Creating new property file: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop

-release-sign:

-post-build:

release:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:
     [echo] Set jars path to: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/CordovaLib/ant-build/classes.jar

-compile:
    [javac] Compiling 35 source files to /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/ant-build/classes
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:37: package com.wikitude.architect does not exist
    [javac] import com.wikitude.architect.ArchitectView;
    [javac]                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:38: package com.wikitude.architect.ArchitectView does not exist
    [javac] import com.wikitude.architect.ArchitectView.ArchitectUrlListener;
    [javac]                                            ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:39: package com.wikitude.architect.ArchitectView does not exist
    [javac] import com.wikitude.architect.ArchitectView.CaptureScreenCallback;
    [javac]                                            ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:40: package com.wikitude.architect does not exist
    [javac] import com.wikitude.architect.StartupConfiguration;
    [javac]                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:41: package com.wikitude.architect.StartupConfiguration does not exist
    [javac] import com.wikitude.architect.StartupConfiguration.CameraPosition;
    [javac]                                                   ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:782: cannot find symbol
    [javac] symbol  : class ArchitectView
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]     protected static class ArchitectViewPhoneGap extends ArchitectView {
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:58: cannot find symbol
    [javac] symbol: class ArchitectUrlListener
    [javac] public class WikitudePlugin extends CordovaPlugin implements ArchitectUrlListener {
    [javac]                                                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:635: cannot find symbol
    [javac] symbol  : class StartupConfiguration
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]     protected StartupConfiguration getStartupConfiguration( final String apiKey, int features, JSONObject startupConfiguration ) {
    [javac]               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:165: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if ( this.architectView != null ) {
    [javac]                                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:183: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if ( this.architectView != null ) {
    [javac]                                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:199: cannot find symbol
    [javac] symbol  : variable ArchitectView
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]             if ( (ArchitectView.getSupportedFeaturesForDevice( this.cordova.getActivity() ) & featuresBitMap) == featuresBitMap ) {
    [javac]                   ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:208: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if (architectView!=null) {
    [javac]                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:210: package ArchitectView does not exist
    [javac]                 int captureMode = ArchitectView.CaptureScreenCallback.CAPTURE_MODE_CAM_AND_WEBVIEW;
    [javac]                                                ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:213: package ArchitectView does not exist
    [javac]                     captureMode = ( args.getBoolean( 0 )) ? ArchitectView.CaptureScreenCallback.CAPTURE_MODE_CAM_AND_WEBVIEW : ArchitectView.CaptureScreenCallback.CAPTURE_MODE_CAM;
    [javac]                                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:213: package ArchitectView does not exist
    [javac]                     captureMode = ( args.getBoolean( 0 )) ? ArchitectView.CaptureScreenCallback.CAPTURE_MODE_CAM_AND_WEBVIEW : ArchitectView.CaptureScreenCallback.CAPTURE_MODE_CAM;
    [javac]                                                                                                                                             ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:229: cannot find symbol
    [javac] symbol  : class CaptureScreenCallback
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]                 architectView.captureScreen(captureMode, new CaptureScreenCallback() {
    [javac]                                                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:296: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if ( this.architectView != null ) {
    [javac]                                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:301: cannot find symbol
    [javac] symbol  : method onResume()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                         WikitudePlugin.this.architectView.onResume();
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:318: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if ( architectView != null ) {
    [javac]                                ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:323: cannot find symbol
    [javac] symbol  : method onPause()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                         WikitudePlugin.this.architectView.onPause();
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:344: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                     if ( architectView != null ) {
    [javac]                                        ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:345: cannot find symbol
    [javac] symbol  : method setVisibility(int)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                         architectView.setVisibility( View.VISIBLE );
    [javac]                                      ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:364: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                     if ( architectView != null ) {
    [javac]                                        ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:365: cannot find symbol
    [javac] symbol  : method setVisibility(int)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                         architectView.setVisibility( View.INVISIBLE );
    [javac]                                      ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:387: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]             if ( this.architectView != null ) {
    [javac]                                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:414: cannot find symbol
    [javac] symbol  : method setLocation(double,double,float,float)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                                     WikitudePlugin.this.architectView.setLocation( lat, lon, altitude, accuracy.floatValue() );
    [javac]                                                                      ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:416: cannot find symbol
    [javac] symbol  : method setLocation(double,double,float)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                                     WikitudePlugin.this.architectView.setLocation( lat, lon, altitude );
    [javac]                                                                      ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:446: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                         if ( architectView != null ) {
    [javac]                                            ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:447: cannot find symbol
    [javac] symbol  : method callJavascript(java.lang.String)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                             WikitudePlugin.this.architectView.callJavascript( callJS );
    [javac]                                                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:478: package StartupConfiguration does not exist
    [javac]                     featuresTmp = StartupConfiguration.Features.Geo | StartupConfiguration.Features.Tracking2D;
    [javac]                                                       ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:478: package StartupConfiguration does not exist
    [javac]                     featuresTmp = StartupConfiguration.Features.Geo | StartupConfiguration.Features.Tracking2D;
    [javac]                                                                                           ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:478: incompatible types
    [javac] found   : boolean
    [javac] required: int
    [javac]                     featuresTmp = StartupConfiguration.Features.Geo | StartupConfiguration.Features.Tracking2D;
    [javac]                                                                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:534: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:557: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]         if ( this.architectView != null ) {
    [javac]                                 ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:560: cannot find symbol
    [javac] symbol  : method onPause()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.onPause();
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:561: cannot find symbol
    [javac] symbol  : method onDestroy()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.onDestroy();
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:565: cannot find symbol
    [javac] symbol  : variable ArchitectView
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]                 WikitudePlugin.clearCacheFolder( new File( ArchitectView.getCacheDirectoryAbsoluteFilePath( this.cordova.getActivity() ) ), 0 );
    [javac]                                                            ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:571: cannot find symbol
    [javac] symbol  : method setVisibility(int)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.setVisibility( View.GONE );
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:572: cannot find symbol
    [javac] symbol  : method getParent()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             ((ViewManager)this.architectView.getParent()).removeView( this.architectView );
    [javac]                                             ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:572: removeView(android.view.View) in android.view.ViewManager cannot be applied to (com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap)
    [javac]             ((ViewManager)this.architectView.getParent()).removeView( this.architectView );
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:618: package StartupConfiguration does not exist
    [javac]                 featuresBitMap = featuresBitMap | StartupConfiguration.Features.Tracking2D;
    [javac]                                                                       ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:620: package StartupConfiguration does not exist
    [javac]                 featuresBitMap = featuresBitMap | StartupConfiguration.Features.Geo;
    [javac]                                                                       ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:624: package StartupConfiguration does not exist
    [javac]             featuresBitMap = StartupConfiguration.Features.Tracking2D | StartupConfiguration.Features.Geo;
    [javac]                                                  ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:624: package StartupConfiguration does not exist
    [javac]             featuresBitMap = StartupConfiguration.Features.Tracking2D | StartupConfiguration.Features.Geo;
    [javac]                                                                                             ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:624: incompatible types
    [javac] found   : boolean
    [javac] required: int
    [javac]             featuresBitMap = StartupConfiguration.Features.Tracking2D | StartupConfiguration.Features.Geo;
    [javac]                                                                       ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:636: package StartupConfiguration does not exist
    [javac]         StartupConfiguration.CameraPosition cameraPosition = CameraPosition.DEFAULT;
    [javac]                             ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:636: cannot find symbol
    [javac] symbol  : variable CameraPosition
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]         StartupConfiguration.CameraPosition cameraPosition = CameraPosition.DEFAULT;
    [javac]                                                              ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:640: package StartupConfiguration does not exist
    [javac]                     cameraPosition = StartupConfiguration.CameraPosition.FRONT;
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:642: package StartupConfiguration does not exist
    [javac]                     cameraPosition = StartupConfiguration.CameraPosition.BACK;
    [javac]                                                          ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:649: cannot find symbol
    [javac] symbol  : class StartupConfiguration
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]         StartupConfiguration config = new StartupConfiguration( apiKey, features, cameraPosition);
    [javac]         ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:649: cannot find symbol
    [javac] symbol  : class StartupConfiguration
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]         StartupConfiguration config = new StartupConfiguration( apiKey, features, cameraPosition);
    [javac]                                           ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:650: cannot find symbol
    [javac] symbol  : variable StartupConfiguration
    [javac] location: class com.wikitude.phonegap.WikitudePlugin
    [javac]         config.setOrigin( StartupConfiguration.ORIGIN_PHONEGAP );
    [javac]                           ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:662: operator == cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]         if ( this.architectView == null ) {
    [javac]                                 ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:670: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                     if (architectView!=null && keyCode == KeyEvent.KEYCODE_BACK) {
    [javac]                                      ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:684: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                     return architectView!=null && keyCode == KeyEvent.KEYCODE_BACK;
    [javac]                                         ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:688: cannot find symbol
    [javac] symbol  : method setFocusableInTouchMode(boolean)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.setFocusableInTouchMode(true);
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:689: cannot find symbol
    [javac] symbol  : method requestFocus()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.requestFocus();
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:709: operator != cannot be applied to com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,<nulltype>
    [javac]                         if ( WikitudePlugin.this.architectView != null ) {
    [javac]                                                                ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:711: cannot find symbol
    [javac] symbol  : method setLocation(double,double,double,float)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                                 WikitudePlugin.this.architectView.setLocation( location.getLatitude(), location.getLongitude(), location.getAltitude(), location.getAccuracy() );
    [javac]                                                                  ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:713: cannot find symbol
    [javac] symbol  : method setLocation(double,double,float)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                                 WikitudePlugin.this.architectView.setLocation( location.getLatitude(), location.getLongitude(), location.getAccuracy() );
    [javac]                                                                  ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:721: addContentView(android.view.View,android.view.ViewGroup.LayoutParams) in android.app.Activity cannot be applied to (com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap,android.view.ViewGroup.LayoutParams)
    [javac]             (this.cordova.getActivity()).addContentView( this.architectView, new ViewGroup.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT ) );
    [javac]                                         ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:726: cannot find symbol
    [javac] symbol  : method onPostCreate()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.onPostCreate();
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:729: cannot find symbol
    [javac] symbol  : method registerUrlListener(com.wikitude.phonegap.WikitudePlugin)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.registerUrlListener( WikitudePlugin.this );
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:735: cannot find symbol
    [javac] symbol  : method load(java.lang.String)
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.load( filePath );
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:738: cannot find symbol
    [javac] symbol  : method onResume()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]             this.architectView.onResume();
    [javac]                               ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:740: package StartupConfiguration does not exist
    [javac]             if ((features & StartupConfiguration.Features.Geo) == features) {
    [javac]                                                 ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:802: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:808: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:817: non-static variable super cannot be referenced from a static context
    [javac]             super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
    [javac]             ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:817: cannot find symbol
    [javac] symbol  : method onFocusChanged(boolean,int,android.graphics.Rect)
    [javac] location: class org.apache.cordova.CordovaPlugin
    [javac]             super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
    [javac]                  ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:821: cannot find symbol
    [javac] symbol  : method requestFocus()
    [javac] location: class com.wikitude.phonegap.WikitudePlugin.ArchitectViewPhoneGap
    [javac]                 this.requestFocus();
    [javac]                     ^
    [javac] /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:814: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 72 errors

BUILD FAILED
/Applications/adt-bundle-mac/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Applications/adt-bundle-mac/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 5 seconds

/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: ant with args: release,-f,/private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /private/tmp/monaca/FakeProjectId/android/skeleton/platforms/android/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135: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
pnagele commented 9 years ago

Sorry, we don't support Monaca officially at the moment. What version of Cordova are you running. when you install wikitude-cordova-plugin 4.1.0 and run the same commands it works?

Sieg-sol-fried commented 9 years ago

Currently, the version of Cordova that are used in Monaca is 4.1.0. However, I don't use Monaca. I would like to setup Cordova and intall plugin.

Thank you very much.