Giter VIP home page Giter VIP logo

flutter-dev-container's People

Contributors

arejula27 avatar lucashilles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter-dev-container's Issues

can't build dev container

ERROR: failed to solve: process "/bin/sh -c sdkmanager \"system-images;android-${ANDROID_PLATFORM_VERSION};google_apis;x86_64\" \t && avdmanager create avd -n Android${ANDROID_PLATFORM_VERSION} -k \"system-images;android-${ANDROID_PLATFORM_VERSION};google_apis;x86_64\"" did not complete successfully: exit code: 1
[2023-02-11T11:18:19.044Z] Stop (80644 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nickveliki/container-features/0.29.0-1676114218379/Dockerfile-with-features -t vsc-flutter-dev-container-a9f261cac1bec1191e0c07ed437c6ab1 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nickveliki/Downloads/flutter-dev-container/.devcontainer
[2023-02-11T11:18:19.045Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nickveliki/container-features/0.29.0-1676114218379/Dockerfile-with-features -t vsc-flutter-dev-container-a9f261cac1bec1191e0c07ed437c6ab1 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nickveliki/Downloads/flutter-dev-container/.devcontainer
[2023-02-11T11:18:19.045Z]     at pie (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1916:1698)
[2023-02-11T11:18:19.045Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-02-11T11:18:19.045Z]     at async vF (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1915:1972)
[2023-02-11T11:18:19.045Z]     at async P7 (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1915:901)
[2023-02-11T11:18:19.045Z]     at async Fie (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1921:2093)
[2023-02-11T11:18:19.046Z]     at async Vf (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1921:3241)
[2023-02-11T11:18:19.046Z]     at async eoe (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:2045:17324)
[2023-02-11T11:18:19.046Z]     at async Qse (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:2045:17065)
[2023-02-11T11:18:19.050Z] Stop (81097 ms): Run: /snap/code/119/usr/share/code/code --ms-enable-electron-run-as-node /home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/nickveliki/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ba948632-49f6-4e79-90ef-68673458c5d51676114216665 --workspace-folder /home/nickveliki/Downloads/flutter-dev-container --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/nickveliki/Downloads/flutter-dev-container --id-label devcontainer.config_file=/home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-02-11T11:18:19.050Z] Exit code 1
[2023-02-11T11:18:19.053Z] Command failed: /snap/code/119/usr/share/code/code --ms-enable-electron-run-as-node /home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/nickveliki/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ba948632-49f6-4e79-90ef-68673458c5d51676114216665 --workspace-folder /home/nickveliki/Downloads/flutter-dev-container --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/nickveliki/Downloads/flutter-dev-container --id-label devcontainer.config_file=/home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-02-11T11:18:19.054Z] Exit code 1

Create an better readme

It should describe:

  • How to change the version of Android SDK and Flutter SDK
  • How to use this container with an existing project
  • Know issues and how to fix (Running web with chrome for example)
  • Use the adb with client-server mode
  • Test with headless emulator

Update Flutter Packages

Error:

GET /dwds/src/injected/client.js
Error thrown by handler.
NoSuchMethodError: The method 'toFilePath' was called on null.
Receiver: null
Tried calling: toFilePath()

Add in dockerfile:
flutter update-packages

My Flutter Web Configuration

Force the deviceId to web-server.

    "configurations": [
        {
            "name": "Flutter Web",
            "type": "dart",
            "request": "launch",
            "program": "lib/main.dart",
            // Setting for fixed web server port
            "deviceId": "web-server",
            "args": [
                "--web-port",
                "8000"
            ],
        },
    ]

fatal: detected dubious ownership & Because complex_layout depends on flutter_gallery_assets 0.2.1 which re quires Flutter SDK version >=0.1.0 <2.0.0, version solving failed.

#0 120.6 fatal: detected dubious ownership in repository at '/opt/flutter'
#0 120.6 To add an exception for this directory, call:
#0 120.6
#0 120.6        git config --global --add safe.directory /opt/flutter
#0 122.0 Running "flutter pub get" in devicelab...                           1.3
s
#0 123.3 Running "flutter pub get" in automated_tests...                     0.6
s
#0 123.9 Running "flutter pub get" in complex_layout...
#0 124.8 The current Flutter SDK version is 0.0.0-unknown.
#0 124.8
#0 124.8
#0 124.8
#0 124.8 Because complex_layout depends on flutter_gallery_assets 0.2.1 which re
quires Flutter SDK version >=0.1.0 <2.0.0, version solving failed.
#0 124.9 pub get failed (1; Because complex_layout depends on flutter_gallery_as
sets 0.2.1 which requires Flutter SDK version >=0.1.0 <2.0.0, version solving fa
iled.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.