xSkyripper / cordova-plugin-ipfs

A simple Cordova Plugin that wraps go-ipfs v0.4.8
Apache License 2.0
5 stars 1 forks source link

jniLibs path is no longer valid #1

Open beenotung opened 6 years ago

beenotung commented 6 years ago

When I add

android {
    sourceSets {
        main {
            ...
            jniLibs.srcDirs = ['libs']
        }
    }

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.
beenotung commented 6 years ago

And that is not needed to work in the current version of cordova, that session in readme can be removed.