You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plugged in my Android device and went through the USB Debugging steps. ssc list-devices --platform=android returns a serial number, as expected.
I ran bun run ssc build -r --platform=android (I also tried -r -o --platform=android, --platform=android, --platform=android-emulator). I get the following error.
$ (export VERBOSE=1; bun run ssc build -o --platform=android)
• cd /home/narilth/HPK/projects/simple-record/ui/build/android +10ms
• sdkmanager --version 2>&1 >/dev/null +0ms
• echo 1 |/usr/share/java/gradle/bin/gradle --no-configuration-cache --no-build-cache --no-scan --offline --quiet init +1682ms
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':init'.
> Aborting build initialization due to existing files in the project directory: '/home/narilth/HPK/projects/simple-record/ui/build/android'.
* Try:
> Remove any existing files in the project directory and run the init task again.
> Enable the --overwrite option to allow existing files to be overwritten.
> 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.
BUILD FAILED in 798ms
• ERROR: failed to invoke `gradle init` command +964ms
• Check licenses and run again:
export JAVA_HOME="/usr/lib/jvm/default" && '/sbin/yes' | '/home/narilth/Android/Sdk/cmdline-tools/latest/bin/sdkmanager' --licenses
+0ms
error: "ssc" exited with code 1
I tried checking my licenses. Below is the output. There are some warnings. After checking licenses, I still get the same error on build.
$ (export JAVA_HOME="/usr/lib/jvm/default" && '/sbin/yes' | '/home/narilth/Android/Sdk/cmdline-tools/latest/bin/sdkmanager' --licenses)
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...
All SDK package licenses accepted.
I tried rerunning the setup. Below is the output. After rerunning setup, I still get the same error on build.
$ bun run ssc setup --platform=android
• Running setup for platform 'android' in SOCKET_HOME (/home/narilth/HPK/projects/simple-record/node_modules/@socketsupply/socket-linux-x64/) +0ms
grep: warning: stray \ before =
grep: warning: stray \ before =
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...
All SDK package licenses accepted.
Edit: Happy new year!
The text was updated successfully, but these errors were encountered:
What OS are you using (
uname -a
, or Windows version)?What version Socket Runtime are you using?
What programming language are you using (C/C++/Go/Rust)?
I don't think I'm using any of these compilers...
For my actual project I'm using Javascript (Vite, Typescript, SolidJS)
What did you expect to see and what you saw instead?
I have an existing (very simple) application that targets Linux. Now, I want to also target Android.
I'm following the Android build guide on https://socketsupply.co/guides/#mobile-guides_android.
ssc setup --platform=android
..ssc.env
contains the right paths. Below is the output ofbun run ssc env
.ssc list-devices --platform=android
returns a serial number, as expected.bun run ssc build -r --platform=android
(I also tried-r -o --platform=android
,--platform=android
,--platform=android-emulator
). I get the following error.Edit: Happy new year!
The text was updated successfully, but these errors were encountered: