cancel
Showing results for 
Search instead for 
Did you mean: 

Error in HAT Setup

0 Kudos

Hi All,

I am trying to setup HAT, but in 'Build hybrid companion app' step I am getting bellow errors, Can anyone suggest solution for this?

ERROR:

The build script exited unexpectedly!

C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:34: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.LocalFilesystemURL; ^ C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:453: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:453: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:454: 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 :compileDebugJavaWithJavac FAILED 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. BUILD FAILED Total time: 22.027 secs Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:49: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:33: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:34: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.LocalFilesystemURL; ^ C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:453: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:453: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils location: class Capture C:\SAP_OFFLINE\SAP_HAT_local-1.29.1\WebIdeCompanion\companionapp\CompanionApp\platforms\android\src\org\apache\cordova\mediacapture\Capture.java:454: 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 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. The build process for android exited unexpectedly! The system cannot find the path specified. cmd error The node process of the build script exited with code 1.

Accepted Solutions (0)

Answers (2)

Answers (2)

dominik-st
Participant
0 Kudos

Hi Peter

Did you solve the problem?

Best regards
Dominik

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos