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.

Execution failed for task ':compileDebugJavaWithJavac'.



  • Hi All, I previously did a build and was running fine in 2015. I tried to change some of the setting to my app and tries to rebuild my app but it couldn’t run. Any help here please?

    Fetch queue Info...
    Start building 5cf9c338e788857c48f8520d
    Setup working directories...
    Download project archive...
    Extract project archive...
    Fetch project info...
    Search builder by config
    Webview:null
    Arch:null
    cordova version: 6.5.0
    
    
    - preBuild -
    
    - Cordova create -
    $ /data/build-server/cordova/6.5.0/bin/cordova create /tmp/monaca/5cf9c338e788857c48f8520d/project
    Creating a new cordova project.
    
    
    - Copy .monaca-res directory -
    
    - Copy config.xml -
    
    - Cordova platform add -
    $ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/android/6.2.3 --nofetch
    Adding android project...
    Creating Cordova project for the Android platform:
    	Path: platforms/android
    	Package: com.sentosa.comf
    	Name: Complimentary_Form
    	Activity: MainActivity
    	Android target: android-25
    Subproject Path: CordovaLib
    Android project created with cordova-android@6.2.3
    
    
    - Copy external plugin setting files -
    
    - Copy www files -
    
    - Cordova plugin add -
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca@3.1.0
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-splashscreen@4.0.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-file-transfer@1.6.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-file@4.3.3
    
    - Cordova prepare -
    $ /data/build-server/cordova/6.5.0/bin/cordova prepare android
    cordova-custom-config: Skipping auto-restore of config file backup(s)
    
    
    - Cordova compile -
    $ /data/build-server/cordova/6.5.0/bin/cordova compile --debug --device
    ANDROID_HOME=/data/android-sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
    :wrapper
    
    BUILD SUCCESSFUL
    
    Total time: 1.07 secs
    Subproject Path: CordovaLib
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    	at build_4nhf2lerip2ugagd3lsgzvbn5.run(/private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/build.gradle:143)
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders
    :CordovaLib:compileDebugShaders
    :CordovaLib:generateDebugAssets
    :CordovaLib:mergeDebugAssets
    :CordovaLib:mergeDebugProguardFiles
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript
    :CordovaLib:generateDebugResValues
    :CordovaLib:generateDebugResources
    :CordovaLib:packageDebugResources
    :CordovaLib:processDebugManifest
    :CordovaLib:generateDebugBuildConfig
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:incrementalDebugJavaCompilationSafeguard
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
    :CordovaLib:mergeDebugJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
    :CordovaLib:bundleDebug
    :prepareOrgApacheCordovaCordovaLib623DebugLibrary
    :prepareDebugDependencies
    :compileDebugAidl
    :compileDebugRenderscript
    :generateDebugBuildConfig
    :generateDebugResValues
    :generateDebugResources
    :mergeDebugResources
    :processDebugManifest
    :processDebugResources
    :generateDebugSources
    :incrementalDebugJavaCompilationSafeguard
    :compileDebugJavaWithJavac
    :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :compileDebugJavaWithJavac FAILED
    
    BUILD FAILED
    
    Total time: 3.035 secs
    
    
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:60: エラー: パッケージorg.apache.cordova.fileは存在しません
    import org.apache.cordova.file.FileUtils;
                                  ^
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:941: エラー: シンボルを見つけられません
                            FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                            ^
      シンボル: クラス FileUtils
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:941: エラー: シンボルを見つけられません
                            FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                                                    ^
      シンボル: クラス FileUtils
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:/private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.javaの操作は、未チェックまたは安全ではありません。
    注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
    エラー3個
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.
    > 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: /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:60: エラー: パッケージorg.apache.cordova.fileは存在しません
    import org.apache.cordova.file.FileUtils;
                                  ^
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:941: エラー: シンボルを見つけられません
                            FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                            ^
      シンボル: クラス FileUtils
    /private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:941: エラー: シンボルを見つけられません
                            FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                                                    ^
      シンボル: クラス FileUtils
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:/private/tmp/monaca/5cf9c338e788857c48f8520d/project/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.javaの操作は、未チェックまたは安全ではありません。
    注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
    エラー3個
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.
    > 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.
     ]
    
    

  • administrators

    My guess is that the version of cordova-plugin-file-transfer you are using has changed. Is there anything on the issues page of that plugin that suggests what might be going on? You could try using an older version if you know which one worked before.