How can I build the android library? #3692
-
While I'm able to run and build
I do have the following built static libraries though:
If I try to build inside the docker image I get Java erros:
Do I need to set up a full linux virtual machine to build the android library or is it possible to do on mac? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi @chokokatana, could you please try to run |
Beta Was this translation helpful? Give feedback.
-
That script fails to run, missing some
Maybe I need to run yet another script after |
Beta Was this translation helpful? Give feedback.
-
Hi, @satoshiotomakan , After I run your few lines: ./tools/install-wasm-dependencies
source ../emsdk/emsdk_env.sh
./tools/generate-files Then run: ./tools/android-build Still got it wrong, it was: C/C++: /Users/l1en/<path>/wallet-core/jni/cpp/Random.cpp:16:54: warning: unused parameter 'reserved' [-Wunused-parameter]
C/C++: JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) {
C/C++: ^
C/C++: 1 warning generated.
> Task :wallet-core:mergeReleaseNativeLibs FAILED
> Task :wallet-core-proto:compileJava FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':wallet-core:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
> No space left on device
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':wallet-core-proto:compileJava'.
> Could not resolve all dependencies for configuration ':wallet-core-proto:compileClasspath'.
> java.io.IOException: No space left on device
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/8.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3m 5s
12 actionable tasks: 11 executed, 1 from cache
FAILURE: Build completed with 3 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':wallet-core:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
> No space left on device
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':wallet-core-proto:compileJava'.
> Could not resolve all dependencies for configuration ':wallet-core-proto:compileClasspath'.
> java.io.IOException: No space left on device
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Could not add entry ':wallet-core:mergeReleaseNativeLibs' to cache executionHistory.bin (/Users/l1en/<path>/wallet-core/android/.gradle/8.1/executionHistory/executionHistory.bin).
> java.io.IOException: No space left on device
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/8.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3m 5s
FAILURE: Build failed with an exception.
* What went wrong:
Could not receive a message from the daemon.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org Its total output is a bit long, so I cut the part where the error occurred. I really need your help. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Oh...., my bad, I didn't look closely at the error output. Do you know how much storage space need? Because I really don't have space left. Thanks. |
Beta Was this translation helpful? Give feedback.
Sure, forgot to add a few more lines: