Closed seba9999 closed 2 years ago
unterminated quoted string refers to
JAVA_OPTS: -Dhttp.proxyHost=$PROXY -Dhttp.proxyPort=$PORT -Dhttps.proxyHost=$PROXY -Dhttps.proxyPort=$PORT"
sdkmanager script is running this line
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $SDKMANAGER_OPTS -classpath "\"$CLASSPATH\"" com.android.sdklib.tool.sdkmanager.SdkManagerCli "$APP_ARGS"
Oh dear lord !
I'm so sorry ! This is "just" a typo error ! Thank you very much ! Wasn't searching in this way at all !
Btw do you have clue about the "next error" ... Which seems to be linked to the proxy this time ?
java.net.ConnectException: Connection refused (Connection refused)
The only linked issue is this one
To answer @dsokal question there : I'm "forced" to use a proxy by my company settings ... Thus I'm trying to do this through gitlab-ci which runs locally under my company proxy :/
What does he means by
we'll be moving away from turtle-cli soon
Expo will change this workflow ?
Stack trace :
$ turtle setup:android --sdk-version 40.0.1 Apr 15 14:22:58 turtle[2710] WARN: Failed to check for turtle-cli update. err: Error: Unable to perform cache refresh for /root/.cache/expo/turtle-cli-updates.json: TimeoutError: Promise timed out after 2000 milliseconds at Cacher.getAsync (/@expo/xdl@59.1.0/src/tools/FsCache.ts:107:15) at Object.checkAsync (/@expo/xdl@59.1.0/src/tools/ModuleVersion.ts:23:43) at checkForUpdateAsync (/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:62:50) at Command.(/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:19:7) platform: "android" Apr 15 14:22:58 turtle[2710] INFO: Downloading Android SDK platform: "android" buildPhase: "setting up environment" Apr 15 14:23:06 turtle[2710] INFO: Decompressing Android SDK platform: "android" buildPhase: "setting up environment" Apr 15 14:23:13 turtle[2710] INFO: Configuring Android SDK, this may take a while platform: "android" buildPhase: "setting up environment" Apr 15 14:23:14 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:14 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:15 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:15 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:15 turtle[2710] INFO: Warning: Failed to find package platforms;android-28 platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: Failed to find package platform-tools platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:16 turtle[2710] INFO: Warning: Failed to find package build-tools;28.0.3 platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:17 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:17 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:17 turtle[2710] INFO: Warning: Failed to find package extras;android;m2repository platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:18 turtle[2710] INFO: Warning: java.net.ConnectException: Connection refused (Connection refused) platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:18 turtle[2710] INFO: Warning: Failed to download any source lists! platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:18 turtle[2710] INFO: Warning: Failed to find package ndk;17.2.4988734 platform: "android" buildPhase: "setting up environment" source: "stderr" Apr 15 14:23:18 turtle[2710] ERROR: Failed to setup environment for android builds err: Error: ./configureAndroidSdk.sh exited with non-zero code: 1 at ChildProcess.completionListener (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13) at Object.onceWrapper (node:events:476:26) at ChildProcess.emit (node:events:369:20) at ChildProcess.emit (node:domain:470:12) at maybeClose (node:internal/child_process:1067:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) ... at spawnAsync (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at Object.spawnAsyncThrowError (/@expo/xdl@59.1.0/src/detach/ExponentTools.ts:111:19) at _configureSdk (/usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/sdk.ts:54:23) at Object.ensureAndroidSDKIsPresent [as default] (/usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/sdk.ts:34:7) at prepareAndroidEnv (/usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/index.ts:70:21) at Object.setup [as default] (/usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/index.ts:58:3) at Object.setup [as default] (/usr/local/lib/node_modules/turtle-cli/src/bin/setup/setup.ts:15:12) at setupAction (/usr/local/lib/node_modules/turtle-cli/src/bin/commands/setup.ts:33:5) at /usr/local/lib/node_modules/turtle-cli/src/bin/commands/setup.ts:22:40 at Command. (/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:23:12) platform: "android"
New Issue Checklist
yarn global add turtle-cli
ornpm install --global turtle-cli
).I'm trying to integrate an apk generating on my gitlab CI and I'm facing this error while just trying to check if everything's fine with setup:android.
Here's my gitlab-ci.yml :
In addition I can tell that I'm working behind a proxy but I've configured all http_proxy settings ( IMO ) Added like this in the gitlab-ci :
Maybe it's related to the
WARN: Failed to check for turtle-cli update
thing ?Unterminated quoted string while trying to run setup:android
/root/.turtle/androidDependencies/sdk/tools/bin/sdkmanager: 2: eval: Syntax error: Unterminated quoted string
Command :
turtle setup:android --sdk-version 40.0.1
Complete output when running turtle, including the stack trace and command used
Environment