Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Monaca localkit can't build app package

  • Hello, I trying to build a project, works perfect on preview mode, but when I try to build, the tool shows me that error below:

    :CordovaLib:generateReleaseAssets UP-TO-DATE
    :CordovaLib:processReleaseJavaRes UP-TO-DATE
    :generateReleaseAssets UP-TO-DATE
    :compileReleaseJavaWithJavac FAILED
    Total time: 13.06 secs
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    /private/tmp/monaca/59c82902013eb014203eeaaa/project/platforms/android/src/com/lorentech/plugins/volumeControl/ エラー: ';'がありません
    				int volumeToSet = (int) Math.round(args.getDouble(0) * 100.0f)
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':compileReleaseJavaWithJavac'.
    > 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.
    Error: Error code 1 for command: /private/tmp/monaca/59c82902013eb014203eeaaa/project/platforms/android/gradlew with args: cdvBuildRelease,-b,/private/tmp/monaca/59c82902013eb014203eeaaa/project/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

    Can someone help me to fix it?


  • Monaca

    @Jonathan-Silva said:
    Based on the error log, it seems like there is an issue with a file inside VolumeControl plugin. Please double check the file. Are you sure there is no error while testing the app?

    /private/tmp/monaca/59c82902013eb014203eeaaa/project/platforms/android/src/com/lorentech/plugins/volumeControl/ エラー: ';'がありません
                    int volumeToSet = (int) Math.round(args.getDouble(0) * 100.0f)

  • yes, sure. btw, I may build the solution only when I removed the plugin. I’m trying to manipulate the device audio.