Hello Experts,
I am also facing same issue with HAT in step 3 while Build the companion app through setup of HAT and errors are bellow..
could you please anyone help me on this ..
ERRORS IN DETAILS:::::::::::::::::
The build script exited unexpectedly!
:CordovaLib:processReleaseManifest :CordovaLib:processReleaseResources :CordovaLib:generateReleaseSources :CordovaLib:compileReleaseJavaNote: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processReleaseJavaRes :CordovaLib:packageReleaseJar :CordovaLib:compileReleaseNdk :CordovaLib:packageReleaseJniLibs UP-TO-DATE :CordovaLib:packageReleaseLocalJar UP-TO-DATE :CordovaLib:packageReleaseRenderscript UP-TO-DATE :CordovaLib:bundleRelease :prepareAfariaProvider3100Library :prepareAndroidCordovaLibUnspecifiedDebugLibrary :prepareAuthproxyAndroid3100Library :prepareComAndroidSupportSupportV42200Library :prepareComGoogleAndroidGmsPlayServicesBase730Library :prepareComGoogleAndroidGmsPlayServicesGcm730Library :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugAssets UP-TO-DATE :mergeDebugAssets :generateDebugResValues :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources :generateDebugSources :compileDebugJava C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:59: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:31: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:32: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.LocalFilesystemURL; ^ C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:934: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:934: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:451: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:451: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:452: error: cannot find symbol LocalFilesystemURL url = filePlugin.filesystemURLforLocalPath(fp.getAbsolutePath()); ^ symbol: class LocalFilesystemURL location: class Capture Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 8 errors 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: 55.189 secs C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s /c "C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT\WebIdeCompanion\companionapp\CompanionApp\platforms\android\build.gradle -Dorg.gradle.daemon=true" ERROR building one of the platforms: Error: cmd: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: cmd: Command failed with exit code 1 The build process for android exited unexpectedly! The system cannot find the file specified. cmd error The node process of the build script exited with code 1.
Thanks in advance !!
Best Regards,
Brajesh Kumar