monacaHPにあるサンプルアプリiBeaconをデバックビルドしたいのですが
エラーが出てしまいます。ログを見ているのですが、原因がわかりません。
ご教授の程、よろしくおねがいします。
◆monacaサンプルアプリ
- monacaHP:iBeaconソースコード
- インポートしたCordovaプラグイン
Bluetooth
iBeaconPlugin
ビルドログ
Temporary folder: /private/tmp/monaca/5907f59a013eb01b664d95c3 Downloading project Download complete Running for 5.2 plugin add mobi.monaca.plugins.Monaca No ALTQ support in kernel ALTQ related functions disabled pf 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.unarin.cordova.beacon No ALTQ support in kernel ALTQ related functions disabled pf enabled Installing "com.unarin.cordova.beacon" for android No ALTQ support in kernel ALTQ related functions disabled pf disabled plugin add cordova-plugin-bluetooth-serial No ALTQ support in kernel ALTQ related functions disabled pf enabled Installing "cordova-plugin-bluetooth-serial" for android 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 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/5907f59a013eb01b664d95c3/android/skeleton/hooks/after_prepare/monaca_enterprise_android.js /private/tmp/monaca/5907f59a013eb01b664d95c3/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/5907f59a013eb01b664d95c3/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/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/gradlew cdvBuildDebug -b /private/tmp/monaca/5907f59a013eb01b664d95c3/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 :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugAssets UP-TO-DATE :mergeDebugAssets :generateDebugResValues :generateDebugResources /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-port-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-land-mdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-port-mdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-mdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/res/drawable-land-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited :mergeDebugResources :processDebugManifest :processDebugResources :generateDebugSources /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/src/com/megster/cordova/BluetoothSerial.java:216: error: cannot find symbol if (cordova.hasPermission(ACCESS_COARSE_LOCATION)) { ^ symbol: method hasPermission(String) location: variable cordova of type CordovaInterface /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/src/com/megster/cordova/BluetoothSerial.java:220: error: cannot find symbol cordova.requestPermission(this, CHECK_PERMISSIONS_REQ_CODE, ACCESS_COARSE_LOCATION); ^ symbol: method requestPermission(BluetoothSerial,int,String) location: variable cordova of type CordovaInterface /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/src/com/megster/cordova/BluetoothSerial.java:468: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors :compileDebugJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJava'. > Compilation failed; see the compiler error output for details. * 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: 5.559 secs /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/gradlew with args: cdvBuildDebug,-b,/private/tmp/monaca/5907f59a013eb01b664d95c3/android/skeleton/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /private/tmp/monaca/5907f59a013eb01b664d95c3/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/5907f59a013eb01b664d95c3/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
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/05/02 07:02
退会済みユーザー
2017/05/16 00:04
退会済みユーザー
2017/05/19 12:49