Wikitudeのビルド成功した方いますか?
お世話になっています。
現在ARツールのWikitudeを利用したアプリの開発に挑戦しており、
とりあえずサンプルのビルドを目指していますが、
Wikitudeのプラグインをインポートしてビルド(デバックビルド・リリースビルド両方試しました。)しただけでビルドでエラーが発生して困っています。
設定した内容は以下の通りです。
・ビルドを行ったOSは 今のところAndroidのみです。
・利用しているプラグインはwikitude以外は初期状態です
・Wikitudeのバージョンは4.1.0-3.1.0 です。(wikitude-cordova-plugin-4.1.0-3.1.0.zip)
・デバックビルド・リリースビルド両方試しました。
・WikitudePlugin.js 内 this._sdKeyはWikitudeの開発者画面にて取得したものを設定しました。
ビルド失敗後のエラーの対応のメッセージとして、
以下二つが表示されています。(画像を添付追加で添付します)
・AndroidManifest.xmlは正しく設定されていますか?
→設定する項目がないので初期状態のままです
・キーストアの設定が正しいですか?
→新規に作成した設定を使用しています。Wikitudeを利用しない場合は問題なくビルドできていることを確認しています。
Monaca環境内でWikitudeのビルドに成功したことがある方、
設定内容等教えていただけるとありがたいです。
以下がビルド時のログになります。
//-----------------------------------------------------------
Temporary folder: /private/tmp/monaca/55bedcb5fd1734496d554ef5
Downloading project
Download complete
Running for 4.1
Installing "mobi.monaca.plugins.Monaca" for android
cordova version not detected (lacks script "/private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.device-motion" for android
Installing "org.apache.cordova.camera" for android
Installing "org.apache.cordova.device-orientation" for android
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.vibration" for android
Installing "org.apache.cordova.contacts" for android
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.media-capture" 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 "com.wikitude.phonegap.WikitudePlugin" for android
cordova version not detected (lacks script "/private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/hooks/after_prepare/monaca_enterprise_encrypt.js /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton
Running command: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/cordova/build --release
Buildfile: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build/res
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build/rsObj
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build/rsLibs
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-gen
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build/classes
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/res
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/libs
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/res
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/rsLibs
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-gen
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/classes
[mkdir] Created dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/res
[crunch] To destination dir: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/CordovaLib/ant-build/classes.jar:/private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/libs/wikitudesdk.jar
-compile:
[javac] Compiling 33 source files to /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/ant-build/classes
[javac] /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:756: cannot find symbol
[javac] symbol : method getView()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] ((CordovaWebView)rootView).getView().clearFocus();
[javac] ^
[javac] /private/tmp/monaca/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/src/com/wikitude/phonegap/WikitudePlugin.java:771: handleResume(boolean,boolean) in org.apache.cordova.CordovaWebView cannot be applied to (boolean)
[javac] ((CordovaWebView)rootView).handleResume(true);
[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] 2 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: 7 seconds
/private/tmp/monaca/55bedcb5fd1734496d554ef5/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/55bedcb5fd1734496d554ef5/android/skeleton/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /private/tmp/monaca/55bedcb5fd1734496d554ef5/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
//--------------------------------------------------------