socketsupply / socket

A cross-platform runtime for Web developers to build desktop & mobile apps for any OS using any frontend library.
https://socketsupply.co/guides
Other
1.62k stars 77 forks source link

Android Emulator issues #793

Closed chicoxyzzy closed 11 months ago

chicoxyzzy commented 11 months ago
  1. Android Emulator fails to start when I use ssc from npm (built with publish-npm-nodules.sh)
    
    ➜ ssc build -r --platform=android-emulator
    • cleaned: /Users/chicoxyzzy/dev/other/test-s/build/android-emulator +55ms
    • package prepared +2548ms
    [=======================================] 100% Computing updates...

• /Users/chicoxyzzy/Library/Android/sdk/ndk/26.0.10792818/ndk-build -j NDK_PROJECT_PATH="/Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main" NDK_APPLICATION_MK="/Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/jni/Application.mk" NDK_DEBUG=1 APP_PLATFORM=android-34 NDK_LIBS_OUT="/Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/jniLibs" >/dev/null 2>&1 +5506ms • ERROR: ndk build failed. +0ms


2. When I build `ssc` from sources (`install.sh`) Emulator starts, but it fails to run the app

➜ ssc build -r --platform=android-emulator • cleaned: /Users/chicoxyzzy/dev/other/test-s/build/android-emulator +125ms • package prepared +5222ms [=======================================] 100% Computing updates...

Configure project :app WARNING:The option setting 'android.experimental.legacyTransform.forceNonIncremental=true' is experimental. The current default is 'false'.

Task :app:compileLiveDebugKotlin w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:571:13 Variable 'vibrate' is never used w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:791:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:844:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:897:15 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1017:17 Name shadowed: bytes w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1088:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1103:17 Name shadowed: bytes w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1128:15 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1160:13 Variable 'path' is never used

Task :app:compileDevDebugKotlin w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:571:13 Variable 'vibrate' is never used w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:791:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:844:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:897:15 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1017:17 Name shadowed: bytes w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1088:17 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1103:17 Name shadowed: bytes w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1128:15 Name shadowed: path w: file:///Users/chicoxyzzy/dev/other/test-s/build/android-emulator/app/src/main/java/co/socketsupply/test/bridge.kt:1160:13 Variable 'path' is never used

BUILD SUCCESSFUL in 31s 70 actionable tasks: 70 executed

Configure project :app WARNING:The option setting 'android.experimental.legacyTransform.forceNonIncremental=true' is experimental. The current default is 'false'.

Task :app:mergeDevReleaseResources FAILED Task :app:mergeLiveReleaseResources FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 5s 95 actionable tasks: 41 executed, 54 up-to-date • ERROR: failed to invoke gradlew assemble command +50012ms

lamiazar commented 11 months ago

android and Android emulators are not working on Windows and darwin-arm64-Posted the errors on the release PR

lamiazar commented 11 months ago

@chicoxyzzy @jwerle The emulator is opening now on darwin-arm64 but I don't see the app showing on the emulator

Screenshot 2023-11-22 at 3 11 36 PM

I did test it multiple times.

chicoxyzzy commented 11 months ago

Both issues were fixed. The issue that @lamiazar mentioned exists for me as well, but we need a new issue for that or just track it in the release PR

jwerle commented 11 months ago

Both issues were fixed. The issue that @lamiazar mentioned exists for me as well, but we need a new issue for that or just track it in the release PR

Which issue exactly?