Im stuck at this problem for a week, can anyone explain to me why i cant run a flutter app either vscode or android studio. I already install all the requirements such as: sdk,ndk,emulator but i still got this problem
-
[ +23 ms] executing:
[C:\Users\hp\Desktop\Flutter\hello_world\android/]
C:\Users\hp\Desktop\Flutter\hello_world\android\gradlew.bat
-Pverbose=true -Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib\main.dart -Ptrack-widget-creation=true -Ptree-shake-icons=true bundleRelease [+12053 ms] Observed package id 'system-images;android-28;google_ndk_playstore;x86' in inconsistent
location
'C:\Users\hp\AppData\Local\Android\sdk\system-images\android-28\google_apis_playstore\x86'
(Expected
'C:\Users\hp\AppData\Local\Android\sdk\system-images\android-28\google_ndk_playstore\x86')
[+1115 ms] IOException:
https://dl.google.com/android/repository/addons_list-3.xml [ +6 ms]
java.net.ConnectException: Connection refused: connect [+1226 ms]
IOException:
https://dl.google.com/android/repository/addons_list-2.xml [ +5 ms]
java.net.ConnectException: Connection refused: connect [+1166 ms]
Related
I have a VM running RedHat 8.6, which is running multiple LXC containers, each with Ubuntu 22.04 installed.
The RedHat VM is used as a SSH proxy to get to the LXC Containers. There are approx 10 developers in my team, each developer has their own LXC Container.
An example VS Code SSH Configuration is as follows
IdentityFile c:\users\simon.carr2\.ssh\id_ed25519
Host jump-box
HostName 10.15.236.74
IdentityFile c:\users\simon.carr2\.ssh\id_ed25519
User bob
Host container
HostName 10.36.165.29
User bob
IdentityFile c:\users\simon.carr2\.ssh\id_ed25519
ProxyCommand ssh -q -W %h:%p jump-box
I can connect to the Host called container (which is proxied through jump-box)
Once connected, in VSCode, I try to Clone Repository in Container Volume
When prompted I put the https link to my on-prem private repo (Running in GitLab)
But I am given the following error in the terminal
[85754 ms] Dev Containers 0.266.1 in VS Code 1.74.0 (5235c6bb189b60b01b1f49062f4ffa42384f8c91).
[85754 ms] Start: Run: ssh container /bin/sh
[85784 ms] Start: Run in host: id -un
[87248 ms] bob
[87249 ms]
[87251 ms] Start: Run in host: cat /etc/passwd
[87310 ms] Start: Run in host: echo ~
[87421 ms] /home/bob
[87422 ms]
[87424 ms] Start: Run in host: test -x '/home/bob/.vscode-remote-containers/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/node'
[87546 ms]
[87547 ms]
[87547 ms] Exit code 1
[87548 ms] Start: Run in host: test -x '/home/bob/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/node'
[87654 ms]
[87655 ms]
[87656 ms] Start: Run in host: test -f '/home/bob/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/node_modules/node-pty/package.json'
[87761 ms]
[87761 ms]
[87761 ms] Start: Run in host: test -f '/home/bob/.vscode-remote-containers/dist/vscode-remote-containers-server-0.266.1.js'
[87865 ms]
[87866 ms]
[87898 ms] userEnvProbe: loginInteractiveShell (default)
[87899 ms] userEnvProbe shell: /bin/bash
[88078 ms] userEnvProbe PATHs:
Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
Container: None
[88188 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}}
[88422 ms] 1.41
[101518 ms] Start: Run in Host: git ls-remote https://gitlab.mydomain.net/gitlab-instance-eb474769/syclops-gui.git
[101724 ms]
[101725 ms] fatal: could not read Username for 'https://gitlab.mydomain.net': No such device or address
[101725 ms] Exit code 128
How do I get VSCode to prompt me for Git Credentials?
I have been struck in this error while installing the app in the smart phone. I have also google the errors but none of them works.
Here is the given below the log of errors
Any Help would be appreciated and thanks in advance
Launching lib\main.dart on M2006C3MG in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/java.net.Socket.connect(Socket.java:558)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:526)
at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:524)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:523)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:564)
at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:212)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1208)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Exception: Gradle task assembleDebug failed with exit code 1
We have followed this guide to set up a minimal example which shows that currently in our setup extensions are not automatically installed when a development container is built.
The .devcontainer.json specifies that golang.go and ms-python.python should be installed on container build.
{
"name": "Container 1",
"dockerComposeFile": ["../docker-compose.yml"],
"service": "container-1",
"shutdownAction": "none",
"extensions": [
"golang.go",
"ms-python.python"
],
// Open the sub-folder with the source code
"workspaceFolder": "/workspace/container1-src",
}
While the extensions seem to get cached, they are not finally installed (usable). Here is an extract of the log
[23638 ms] 861598b8-962e-4242-883b-0c2e172dc4e0
[23638 ms]
[23639 ms] Start: Starting VS Code Server
[23640 ms] Start: Preparing Extensions
[23641 ms] Start: Run in container: test ! -f '/root/.vscode-server-insiders/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server-insiders/data/Machine' && { > '/root/.vscode-server-insiders/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[23652 ms]
[23653 ms]
[23660 ms] Extensions cache, install extensions: ms-python.python, golang.go, vscode.python, ms-python.vscode-pylance, ms-toolsai.jupyter, ms-python.pylint
[23661 ms] Start: Run in container: test -d /root/.vscode-server-insiders/extensionsCache && ls /root/.vscode-server-insiders/extensionsCache || true
[23666 ms]
[23666 ms]
[23670 ms] Extensions cache, copy to remote: ms-python.python-2022.4.1, ms-python.vscode-pylance-2022.4.0, ms-toolsai.jupyter-2022.3.1000901801, ms-toolsai.jupyter-keymap-1.0.0, ms-toolsai.jupyter-renderers-1.0.6
[23798 ms] Start: Run in container: # Copy extensions to remote
[24013 ms] /root
[24013 ms]
[24013 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-525ff14d87410cce22568eada8e775519d4c39e6.js' >/tmp/vscode-remote-containers-525ff14d87410cce22568eada8e775519d4c39e6.js
[24128 ms]
[24129 ms]
[24130 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-525ff14d87410cce22568eada8e775519d4c39e6.js' >/tmp/vscode-remote-containers-server-525ff14d87410cce22568eada8e775519d4c39e6.js_1658149613876
[24152 ms]
[24153 ms]
[24435 ms] userEnvProbe PATHs:
Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[24474 ms]
[24475 ms]
[24476 ms] Start: Run in Host: docker exec -i -u root -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/root/.vscode-server-insiders -w /root/.vscode-server-insiders/bin/1cd90cceddf3c413673963ab6f154d2ff294b17c-insider 0e72ac2aff313c24e70caa3b5b9d74428f7be41d6d00acc414dc4339e84ff807 /root/.vscode-server-insiders/bin/1cd90cceddf3c413673963ab6f154d2ff294b17c-insider/bin/code-server-insiders --log debug --force-disable-user-env --server-data-dir /root/.vscode-server-insiders --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server-insiders/data/Machine/.connection-token-1cd90cceddf3c413673963ab6f154d2ff294b17c-insider --extensions-download-dir /root/.vscode-server-insiders/extensionsCache --install-extension ms-python.python --install-extension golang.go --install-extension vscode.python --install-extension ms-python.vscode-pylance --install-extension ms-toolsai.jupyter --install-extension ms-python.pylint --start-server --disable-websocket-compression
...
...
25393 ms] Installing extensions...
[25400 ms] [13:06:55] Extension host agent started.
[25517 ms] Port forwarding 63455 > 34827 > 34827 stderr: Connection established
[25601 ms] Port forwarding connection from 63459 > 34827 > 34827 in the container.
[25602 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=966c34aa-e1b8-4837-bd34-7dcc777a8ac81658149588164 0e72ac2aff313c24e70caa3b5b9d74428f7be41d6d00acc414dc4339e84ff807 /root/.vscode-server-insiders/bin/1cd90cceddf3c413673963ab6f154d2ff294b17c-insider/node -e
[25705 ms] [13:06:55] ComputeTargetPlatform: linux-x64
[25960 ms] [13:06:55] [127.0.0.1][831a8c84][ManagementConnection] New connection established.
[26132 ms] Port forwarding 63459 > 34827 > 34827 stderr: Connection established
[26388 ms] [13:06:56] [127.0.0.1][5655a2f8][ExtensionHostConnection] New connection established.
[26425 ms] [13:06:56] [127.0.0.1][5655a2f8][ExtensionHostConnection] <250> Launched Extension Host Process.
[32331 ms] [13:07:02] Getting Manifest... ms-vscode.vscode-js-profile-table
[33009 ms] [13:07:02] Installing extension: ms-vscode.vscode-js-profile-table
[13:07:02] Installing the extension without checking dependencies and pack ms-vscode.vscode-js-profile-table
[33131 ms] [13:07:02] Extracted extension to /root/.vscode-server-insiders/extensions/.1eafe36a-5761-4868-8244-3416d12fa1b5: ms-vscode.vscode-js-profile-table
[33138 ms] [13:07:02] Renamed to /root/.vscode-server-insiders/extensions/ms-vscode.vscode-js-profile-table-1.0.3
[33142 ms] [13:07:02] Extracting completed. ms-vscode.vscode-js-profile-table
[33143 ms] [13:07:02] Extension installed successfully: ms-vscode.vscode-js-profile-table
[34480 ms] Extensions cache, remote removals: None
[94501 ms] Extensions cache, remote removals: None
[154508 ms] Extensions cache, remote removals: None
[214520 ms] Extensions cache, remote removals: None
[274526 ms] Extensions cache, remote removals: None
[334542 ms] Extensions cache, remote removals: None
Only one package is installed on image build.
Our setup:
Corporate laptop behind a firewall (zscalar) with docker for windows. Installing packages via GUI works without a problem both locally and inside the container.
We have tried this on stable and insiders. Also we have tried from plain windows and wsl.
Any ideas?
This github issue outlines the solution. While I was not getting self signed certificate in certificate chain errors in the console, adding the zscalar.crt in NODE_EXTRA_CA_CERTS resolved the issue. Extensions are now installing as expected.
I still face a similar issue with another proxy setup and cannot get it to work. Overall the extension installation seems to be very sensitive to certificates and it is still not clear to me if there is a better logging somewhere.
I have a Flutter app (using version 2.5.1) that
Runs on a simulator
Run on a physical iOS device
Runs when I distribute it using TestFlight
Has integration tests, that run just fine on the simulator.
The app uses Flutterfire and the integration tests uses parts of the app that use Flutterfire.
However, when I follow these instructions in order to create something that can eventually be distributed to Firebase Test Lab, I stumble on the penultimate step:
xcodebuild test-without-building -xctestrun "build/ios_integ/Build/Products/Runner_iphoneos15.0-arm64-armv7.xctestrun" -destination id=<MYDEVICEID>
The app deploys to the physical device, and starts to run, but seems to fail to connect to any Firebase back-ends.
The logs have errors that look like those below.
Any pointers as to how I can fix this will be much appreciated!
Test Suite 'All tests' started at 2021-09-23 18:50:58.044
Test Suite 'RunnerTests.xctest' started at 2021-09-23 18:50:58.045
Test Suite 'RunnerTests' started at 2021-09-23 18:50:58.045
Test Case '-[RunnerTests testIntegrationTest]' started.
2021-09-23 18:50:58.047998+0100 Runner[404:7739] flutter: 00:00 +0: Porridge (setUpAll)
2021-09-23 18:50:58.049466+0100 Runner[404:7739] flutter: 00:00 +1: Porridge Create User
2021-09-23 18:50:58.052143+0100 Runner[404:7734] 8.6.0 - [Firebase/Analytics][I-ACS023007] Analytics v.8.6.0 started
2021-09-23 18:50:58.052457+0100 Runner[404:7734] 8.6.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following
application argument: -noFIRAnalyticsDebugEnabled
2021-09-23 18:50:58.062413+0100 Runner[404:7730] [connection] nw_socket_handle_socket_event [C1.1:2] Socket SO_ERROR [61: Connection r
efused]
2021-09-23 18:50:58.062759+0100 Runner[404:7730] [connection] nw_socket_handle_socket_event [C1.2:2] Socket SO_ERROR [61: Connection r
efused]
2021-09-23 18:50:58.063110+0100 Runner[404:7730] Connection 1: received failure notification
2021-09-23 18:50:58.063199+0100 Runner[404:7730] Connection 1: failed to connect 1:61, reason -1
2021-09-23 18:50:58.063314+0100 Runner[404:7730] Connection 1: encountered error(1:61)
2021-09-23 18:50:58.063936+0100 Runner[404:7730] Task <0B92B415-FE63-4467-8248-8FB5B411688A>.<1> HTTP load failed, 0/0 bytes (error co
de: -1004 [1:61])
2021-09-23 18:50:58.064589+0100 Runner[404:7730] Task <0B92B415-FE63-4467-8248-8FB5B411688A>.<1> finished with error [-1004] Error Dom
ain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x281c31890
{Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErr
orFailingURLSessionTaskErrorKey=LocalDataTask <0B92B415-FE63-4467-8248-8FB5B411688A>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <0B92B415-FE63-4467-8248-8FB5B411688A>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:9099/www.googleapis.com/identi
tytoolkit/v3/relyingparty/signupNewUser?key=AIzaSyCHkqtqAXDFllu7SmuwSw8_pudpAn-dzdM, NSErrorFailingURLKey=http://localhost:9099/www.go
ogleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=AIzaSyCHkqtqAXDFllu7SmuwSw8_pudpAn-dzdM, _kCFStreamErrorDomainKey=1}
2021-09-23 18:50:58.065318+0100 Runner[404:7739] flutter: [firebase_auth/network-request-failed] Network error (such as timeout, interrupted connection or unreachable host) has occurred.
2021-09-23 18:50:58.065511+0100 Runner[404:7739] flutter: #0 MethodChannelFirebaseAuth.createUserWithEmailAndPassword (package:firebase_auth_platform_interface/src/method_channel/method_channel_firebase_auth.dart:272)
...etc....
i'm new to flutter and i'm trying to run my application on android studio but i always get this error:
Running Gradle task 'assembleDebug'...
Exception in thread "main" javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
at sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1470)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1298)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1199)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:401)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:480)
at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:469)
at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:159)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:110)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1290)
... 16 more
Exception: Gradle task assembleDebug failed with exit code 1
Please, How can I fix this ?