Code Monkey home page Code Monkey logo

flutter-dev-environment-docker's Introduction

Hi, I'm Rubén Carrascal

Front-end developer

visitors GitHub Krrskl

A little about me

const krrskl = {
  code: ["Javascript", "Typescript", "PHP"],
  tools: ["Angular", "RxJs", "Laravel", "NodeJS"],
  preprocessors: ["SASS"],
  blogs: [
    {
      name: "medium",
      url: "https://medium.com/@krrskl",
    },
  ],
  briefcase: "https://krrskl.github.io"
};

Other languages and tools

Wakatime metrics

Kotlin       19 hrs 33 mins  ██████████▓░░░░░░░░░░░░░░   43.31 %
TypeScript   14 hrs 22 mins  ████████░░░░░░░░░░░░░░░░░   31.82 %
Dart         7 hrs 28 mins   ████░░░░░░░░░░░░░░░░░░░░░   16.54 %
YAML         59 mins         ▓░░░░░░░░░░░░░░░░░░░░░░░░   02.19 %
Vue.js       35 mins         ▒░░░░░░░░░░░░░░░░░░░░░░░░   01.31 %

Github stats

Contact

Linkedin Badge Twitter Badge

flutter-dev-environment-docker's People

Contributors

krrskl avatar

Stargazers

 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-environment-docker's Issues

[bug 🐞]: Failed to build docker image

The docker image build fails at step:

# Verify the status licenses
RUN yes | flutter doctor --android-licenses
Output
=> ERROR [dev_container_auto_added_stage_label 15/16] RUN yes | flutter  85.8s


                                                                                
------
 > [dev_container_auto_added_stage_label 15/16] RUN yes | flutter doctor --android-licenses:
#0 1.190    Woah! You appear to be trying to run flutter as root.
#0 1.191    We strongly recommend running the flutter tool without superuser privileges.
#0 1.191   /
#0 1.193 📎
#0 1.391 Downloading Linux x64 Dart SDK from Flutter engine 5fb3179a19c3e7dcb96c312b327c712ba9c77ec9...
#0 2.033   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#0 2.033                                  Dload  Upload   Total   Spent    Left  Speed
#0 2.033 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0  205M    0 60304    0     0  83625      0  0:43:01 --:--:--  0:43:01 83639
  4  205M    4 10.1M    0     0  6042k      0  0:00:34  0:00:01  0:00:33 6042k
 11  205M   11 23.6M    0     0  8884k      0  0:00:23  0:00:02  0:00:21 8884k
 18  205M   18 37.2M    0     0  10.0M      0  0:00:20  0:00:03  0:00:17 10.0M
 24  205M   24 50.7M    0     0  10.7M      0  0:00:19  0:00:04  0:00:15 10.7M
 31  205M   31 64.2M    0     0  11.2M      0  0:00:18  0:00:05  0:00:13 12.8M
 36  205M   36 75.8M    0     0  11.2M      0  0:00:18  0:00:06  0:00:12 13.1M
 43  205M   43 89.4M    0     0  11.5M      0  0:00:17  0:00:07  0:00:10 13.1M
 50  205M   50  103M    0     0  11.8M      0  0:00:17  0:00:08  0:00:09 13.1M
 56  205M   56  116M    0     0  11.9M      0  0:00:17  0:00:09  0:00:08 13.1M
 63  205M   63  130M    0     0  12.1M      0  0:00:16  0:00:10  0:00:06 13.1M
 68  205M   68  141M    0     0  12.0M      0  0:00:17  0:00:11  0:00:06 13.1M
 75  205M   75  155M    0     0  12.1M      0  0:00:16  0:00:12  0:00:04 13.1M
 81  205M   81  168M    0     0  12.2M      0  0:00:16  0:00:13  0:00:03 13.1M
 88  205M   88  182M    0     0  12.3M      0  0:00:16  0:00:14  0:00:02 13.1M
 94  205M   94  195M    0     0  12.4M      0  0:00:16  0:00:15  0:00:01 12.9M
100  205M  100  205M    0     0  12.4M      0  0:00:16  0:00:16 --:--:-- 13.3M
[2023-05-18T22:25:11.626Z] 
#0 25.81 Building flutter tool...
#0 26.11 Resolving dependencies...
#0 37.33 Got dependencies.
#0 70.28 Downloading Material fonts...                                    1,167ms
#0 71.54 Downloading Gradle Wrapper...                                      176ms
#0 71.82 Downloading package sky_engine...                                  357ms
#0 72.25 Downloading flutter_patched_sdk tools...                           576ms
#0 72.95 Downloading flutter_patched_sdk_product tools...                   469ms
#0 73.55 Downloading linux-x64 tools...                                   2,704ms
[2023-05-18T22:25:11.627Z] 
#0 77.38 Downloading linux-x64/font-subset tools...                         351ms
#0 79.82 Error: A JNI error has occurred, please check your installation and try again
#0 79.82 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/prefs/AndroidLocationsProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
#0 79.83 	at java.lang.ClassLoader.defineClass1(Native Method)
#0 79.83 	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
#0 79.83 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
#0 79.83 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
#0 79.83 	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
#0 79.83 	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
#0 79.83 	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
#0 79.83 	at java.security.AccessController.doPrivileged(Native Method)
[2023-05-18T22:25:11.629Z] #0 79.83 	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
#0 79.83 	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
#0 79.83 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
#0 79.83 	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
#0 79.83 	at java.lang.Class.getDeclaredMethods0(Native Method)
#0 79.83 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
#0 79.83 	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
#0 79.83 
[2023-05-18T22:25:11.631Z] 	at java.lang.Class.getMethod0(Class.java:3018)
#0 79.83 	at java.lang.Class.getMethod(Class.java:1784)
#0 79.83 	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:670)
#0 79.83 	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:652)
#0 79.84 Android sdkmanager tool was found, but failed to run (/home/root/Android/sdk/cmdline-tools/latest/bin/sdkmanager): "exited code 1".
#0 79.84 Try re-installing or updating your Android SDK,
#0 79.84 visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions.
------
Dockerfile-with-features:45
[2023-05-18T22:25:11.634Z] 
[2023-05-18T22:25:11.635Z] --------------------
  43 |     
  44 |     # Verify the status licenses
  45 | >>> RUN yes | flutter doctor --android-licenses
  46 |     
[2023-05-18T22:25:11.639Z] 
  47 |     # Start the adb daemon
--------------------
Exit code 1

Apparently in flutter jdk>=11 is required but the android sdk only supports jdk=8

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.