Skip to Content
0

Error in HAT Setup

Jan 04 at 02:03 PM

135

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jitendra Kansal
Jan 04 at 03:00 PM
0
Share
10 |10000 characters needed characters left characters exceeded
Dominik Steinrücken Jan 12 at 09:16 AM
0

Hi Peter

Did you solve the problem?

Best regards
Dominik

Share
10 |10000 characters needed characters left characters exceeded