to /path/to/project/platforms/android/build.gradle,
it results in compilation error when running cordova run android
Cordova version: 8.0.0
Console log:
beenotung:ipfsDemo$ cordova run android
Android Studio project detected
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk
studio
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* Where:
Build file '/home/beenotung/workspace/local/ipfs-client-demo/ipfsDemo/platforms/android/build.gradle' line: 56
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method android() for arguments [build_6at8bx0g01q7udeo4ufn0yitr$_run_closure3@d209696] on root project 'android' of type org.gradle.api.Project.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
(node:31675) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /home/beenotung/workspace/local/ipfs-client-demo/ipfsDemo/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/beenotung/workspace/local/ipfs-client-demo/ipfsDemo/platforms/android/build.gradle' line: 56
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method android() for arguments [build_6at8bx0g01q7udeo4ufn0yitr$_run_closure3@d209696] on root project 'android' of type org.gradle.api.Project.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
(node:31675) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When I add
to
/path/to/project/platforms/android/build.gradle
, it results in compilation error when runningcordova run android
Cordova version: 8.0.0
Console log: