on 01-04-2018 2:03 PM
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.
Hi Peter
Did you solve the problem?
Best regards
Dominik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please check this thread?
https://answers.sap.com/questions/390870/sap-hybrid-application-toolkit-129-error-during-se.html
Regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.