Code Monkey home page Code Monkey logo

bitrise-step-flutter's Issues

error: externally-managed-environment

Hi guys I suddenly get this error:

error: externally-managed-environment

This came up during the workflow step of
packages pub run build_runner build --delete-conflicting-outputs

and I cannot see why it is - can you help me here?

This is the whole message:

Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'six'
six Python module not found, installing it
WARNING: The directory '/Users/vagrant/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.

If you wish to install a Python library that isn't in Homebrew,
use a virtual environment:

python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install xyz

If you wish to install a Python application that isn't in Homebrew,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. You can install pipx with

brew install pipx

You may restore the old behavior of pip by passing
the '--break-system-packages' flag to pip, or by adding
'break-system-packages = true' to your pip.conf file. The latter
will permanently disable this error.

If you disable this error, we STRONGLY recommend that you additionally
pass the '--user' flag to pip, or set 'user = true' in your pip.conf
file. Failure to do this can result in a broken Homebrew installation.

Read more about this behavior here: <https://peps.python.org/pep-0668/>;
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Could not setup macOS environment, error: exit status 1

I reached out to bitrise support and they said - thanks for replying

the said that:

The error message explained that the curl command failed because the environment is externally managed, you can use brew install pip3 to install python packages system-wide.

error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.

_The failing step (flutter - Flutter Pub Get) is a 3rd party step, please report the issue for the step’s repository here: https://github.com/DroidsOnRoids/bitrise-step-flutter/issues (Step resources/ Issue tracker on the build log page).

Xcode 15.3 stacks have a new python version compared to older stacks such as Xcode 14.3 stacks (3.11.5 → 3.12.2). With the new python version, the command the step uses to install the six phyton lib fails.

Based on this, similar GH issue: pypa/virtualenv#988, the executed command should have a -H flag after sudo.

You could also try a Script step instead to run the flutter commands manually (flutter pub get and flutter precache --ios), in order to see if that works better._

I tried this steps - I added 3 script steps to the workflow

  1. "Script"
#!/bin/bash
brew install pipx
  1. "Script"
#!/usr/bin/env bash
flutter pub get
  1. "Script"
#!/usr/bin/env bash
flutter precache --ios

the 9. step is a the "Run build_runner" command - like that
sudo -H packages pub run build_runner build --delete-conflicting-outputs

and here i get always the same error - hope you guys can help me - thanks

Could not extract Flutter SDK, error: exit status 128

We've set Flutter version to TAG 1.17.0
Flutter install when setting stable version to: 1.17.0
success

then
Flutter command with version set to: 1.17.0
pub get
Extracting Flutter SDK to /Users/vagrant/Library/flutter
Version 1.17.0 not found in releases, trying snapshot.
Could not extract Flutter SDK, error: exit status 128
| |
+---+---------------------------------------------------------------+----------+
| x | flutter@0 (exit code: 2)

The version exists
https://github.com/flutter/flutter/releases/tag/1.17.0
also here: https://flutter.dev/docs/development/tools/sdk/releases
also it's installed via Flutter install

Input "version" is never used, when Flutter already installed

If Flutter already installed, then it won't check the input version, and wrong version of Flutter will be used.

Please see related code:
A
B
C

I think it should check the version too, or at least add a warning message that in this case the version will be ignored (and make the input not required).

Can't run "flutter pub get" because licenses

The command can't finish due to licenses that have not been accepted.
Is there any way to automatically accept every license?

+------------------------------------------------------------------------------+

| (5) flutter@0                                                                |
+------------------------------------------------------------------------------+
| id: flutter                                                                  |
| version: 0.0.10                                                              |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2021-06-16T21:13:14Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[21:13:14]  * [OK] Step dependency (git) installed, available. 
INFO[21:13:14]  * [OK] Step dependency (curl) installed, available. 
INFO[21:13:14]  * [OK] Step dependency (unzip) installed, available. 
Config:
- Version: 2.2.2
- WorkingDir: /Users/vagrant/git
- Commands: [pub get]
Loading local repository...                                                     
[=========                              ] 25% Loading local repository...       
[=========                              ] 25% Fetch remote repository...        
[=========                              ] 25% Fetch remote repository...        
[==========                             ] 26% Fetch remote repository...        
[==========                             ] 27% Fetch remote repository...        
[===========                            ] 28% Fetch remote repository...        
[===========                            ] 29% Fetch remote repository...        
[===========                            ] 29% Fetch remote repository...        
[============                           ] 30% Fetch remote repository...        
[============                           ] 31% Fetch remote repository...        
[============                           ] 31% Fetch remote repository...        
[============                           ] 32% Fetch remote repository...        
[=============                          ] 33% Fetch remote repository...        
[=============                          ] 33% Fetch remote repository...        
[=============                          ] 34% Fetch remote repository...        
[=============                          ] 35% Fetch remote repository...        
[==============                         ] 36% Fetch remote repository...        
[==============                         ] 36% Fetch remote repository...        
[==============                         ] 37% Fetch remote repository...        
[===============                        ] 38% Fetch remote repository...        
[===============                        ] 38% Fetch remote repository...        
[===============                        ] 39% Fetch remote repository...        
[===============                        ] 40% Fetch remote repository...        
[================                       ] 40% Fetch remote repository...        
[================                       ] 41% Fetch remote repository...        
[================                       ] 42% Fetch remote repository...        
[====================                   ] 52% Fetch remote repository...        
[=======================                ] 60% Fetch remote repository...        
[=======================                ] 60% Computing updates...              
[=============================          ] 75% Computing updates...              
[=============================          ] 75% Computing updates...              
[=======================================] 100% Computing updates...             
7 of 7 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)? 
1/7: License android-googletv-license:
---------------------------------------
Terms and Conditions
This is the Google TV Add-on for the Android Software Development Kit License Agreement.
1. Introduction
1.1 The Google TV Add-on for the Android Software Development Kit (referred to in this License Agreement as the "Google TV Add-on" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the Google TV Add-on.
1.2 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.
2. Accepting this License Agreement

... hangs

Version master not found in releases, trying snapshot.

I noticed this step is having issues fetching specific Flutter versions I am requesting it use when executing a command. I get the error:

When following the example posted in the screenshot, I get an error.

Extracting Flutter SDK to /Users/vagrant/Library/flutter
Version 13.13.9-stable not found in releases, trying snapshot.
Could not extract Flutter SDK, error: exit status 128

Screenshot 2023-12-22 at 9 44 30 AM

Using "master" I get a similar error but the command does not terminate, however because the "snapshot" version is an older version of Flutter, I am not able to use --flavor in my test command because it was later implemented in a later version.

Extracting Flutter SDK to /Users/vagrant/Library/flutter
Version master not found in releases, trying snapshot.
Executing Flutter command: test integration_test/login_test.dart --flavor dev

Error:"Could not setup macOS environment, error: exit status 1" in the Flutter step v0.0.8.

I have been faced with the following problem in the Flutter step v0.0.8.

I check the case that it succeeded on December 13,2019(GMT+0900) and failed on December 16,2019(GMT+0900).

■Log excerpt(Failure patern)

Accept? (y/N): All SDK package licenses accepted

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named six
�[34;1msix Python module not found, installing it with easy_install...�[0m
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Searching for six
Reading https://pypi.org/simple/six/
Download error on https://pypi.org/simple/six/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'six' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or working download links found for six
error: Could not find suitable distribution for Requirement.parse('six')
�[31;1mCould not setup macOS environment, error: exit status 1�[0m

and

■Log excerpt(Success patern)

Accept? (y/N): All SDK package licenses accepted

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named six
�[34;1msix Python module not found, installing it with easy_install...�[0m
Searching for six
Reading https://pypi.org/simple/six/
Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl#sha256=1f1b7d42e254082a9db6279deae68afb421ceba6158efa6131de7b3003ee93fd
Best match: six 1.13.0
Processing six-1.13.0-py2.py3-none-any.whl
Installing six-1.13.0-py2.py3-none-any.whl to /usr/local/lib/python2.7/site-packages
Adding six 1.13.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/six-1.13.0-py2.7.egg
Processing dependencies for six
Finished processing dependencies for six
�[34;1mExtracting Flutter SDK to /Users/vagrant/Library/flutter�[0m
�[34;1mVersion stable not found in releases, trying snapshot.�[0m
�[34;1mExecuting Flutter command: build ios --release --flavor dev --target lib/main_dev.dart --build-number=XXXX�[0m
Downloading Dart SDK from Flutter engine 2994f7e1e682039464cb25e31a78b86a3c59b695...

The former differs from the latter in that it cannot download "https://pypi.org/simple/six/" .

Reading https://pypi.org/simple/six/
Download error on https://pypi.org/simple/six/: unknown url type: https -- Some packages may not be found!

Does anyone face the same problem?

Thank you,

Flutter packages ge failing on build but working on laptop on clean directory

Hi,

this use to work properly untill I have replaced in the pubspec a specfic version of a package.
This is the dependencies section of my pubspec:

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  fluro: ^1.3.1
  flutter_map: ^0.0.6
  latlong: ^0.4.5
  rxdart: ^0.18.1
  date_format: ^1.0.4
  firebase_core: ^0.2.4
    #firebase_auth: ^0.5.12
  firebase_auth:
    git:
      url: [email protected]:flutter/plugins.git
      path: packages/firebase_auth
      ref: 075897e
  location: ^1.3.3

I can flutter packages get on my laptop but on the build server I'm getting the following error:

Running "flutter packages get" in mobilet_app...
Could not find a file named "packages/firebase_auth/pubspec.yaml" in [email protected]:flutter/plugins.git 075897eaec21dffd238ddfaa544ae7b773fc3b29.

I have the same version of flutter installed on both the laptop and the server:

this is what I have on the server:

Config:
- Version: 0.5.6-dev
- WorkingDir: /Users/vagrant/git/sweetnest_app
- Commands: [build ios -t lib/main_impl.dart]
ANDROID_HOME environment variable not defined, skipping Android SDK setup.
Extracting Flutter SDK to /Users/vagrant/Library/flutter
Executing Flutter command: build ios -t lib/main_impl.dart
  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.io                   ║
  ║                                                                            ║
  ║ The Flutter tool anonymously reports feature usage statistics and crash    ║
  ║ reports to Google in order to help Google contribute improvements to       ║
  ║ Flutter over time.                                                         ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting        ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://www.google.com/intl/en/policies/privacy/                           ║
  ║                                                                            ║
  ║ Use "flutter config --no-analytics" to disable analytics and crash         ║
  ║ reporting.                                                                 ║
  ╚════════════════════════════════════════════════════════════════════════════╝
  
Running "flutter packages get" in sweetnest_app...
Could not find a file named "packages/firebase_auth/pubspec.yaml" in [email protected]:flutter/plugins.git 075897eaec21dffd238ddfaa544ae7b773fc3b29.
---- Log transcript ----
FINE: Pub 2.0.0-dev.63.0.flutter-4c9689c1d2
MSG : Resolving dependencies...
SLVR: fact: sweetnest_app is 0.0.0
SLVR: derived: sweetnest_app
SLVR: fact: sweetnest_app depends on date_format ^1.0.4
SLVR: fact: sweetnest_app depends on fluro ^1.3.1
SLVR: fact: sweetnest_app depends on location ^1.3.3
SLVR: fact: sweetnest_app depends on flutter_localizations any from sdk
SLVR: fact: sweetnest_app depends on flutter any from sdk
SLVR: fact: sweetnest_app depends on firebase_core ^0.2.4
SLVR: fact: sweetnest_app depends on firebase_auth from git
SLVR: fact: sweetnest_app depends on cupertino_icons ^0.1.2
SLVR: fact: sweetnest_app depends on rxdart ^0.18.1
SLVR: fact: sweetnest_app depends on latlong ^0.4.5
SLVR: fact: sweetnest_app depends on flutter_map ^0.0.6
SLVR: fact: sweetnest_app depends on flutter_test any from sdk
SLVR: fact: sweetnest_app depends on flutter_launcher_icons ^0.3.2

And on my laptop:

➜ sweetnest/sweetnest_app ➤ ba5edf5|develop ✓
± flutter doctor                                                                                                                                           [8h]
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.5.7-pre.122, on Mac OS X 10.13.5 17F77, locale en-BE)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.6)
[✓] VS Code (version 1.25.0)
[✓] Connected devices (1 available)

• No issues found!
➜ sweetnest/sweetnest_app ➤ ba5edf5|develop ✓
± flutter packages get                                                                                                                                   ⏎ [9h]
Running "flutter packages get" in sweetnest_app...           0.9s
➜ sweetnest/sweetnest_app ➤ ba5edf5|develop ✓

Any help appreciated :)

Failing to install junitreport

Getting the below issue in 0.1.3 version of the step. Have tried re-running multiple times.

Failed to install Step dependency, error: command failed with exit status 100 (sudo "apt-get" "update"): Hit:1 https://packages.cloud.google.com/apt cloud-sdk InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 https://deb.nodesource.com/node_16.x focal InRelease
Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:10 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Err:5 https://dl.yarnpkg.com/debian stable InRelease
The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging [email protected]
Hit:11 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu focal InRelease
Hit:9 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
Reading package lists...
W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging [email protected]
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed. (exit code: 1)

--no-build option is not recognized

I tried to launch my integration tests using this step drive --driver=test_driver/app_test.dart --no-build but I got:

Executing Flutter command: drive --driver=test_driver/app_test.dart --no-build
Could not find an option named "build".

When using a custom script step with the same command flutter drive --driver=test_driver/app_test.dart --no-build it works.

ability to change channels

can you extend this so i can pick which channel i am on and then it self upgrades
in the web workflow GUI it would just be a matter of choosing the various channels.

Change flutter version

I added the step in my workflow and as default the flutter version was "0.4.4-beta", now I want to change this version with the last released version but the build continues to fail with this error

Could not extract Flutter SDK, error: Failed to download target from: https://storage.googleapis.com/flutter_infra/releases/master/macos/flutter_macos_v0.10.0-master.zip

I tried with the following versions, but the build continues to fail:

  • 0.10.0-master

  • 0.10.0

  • 0.9.6-master

  • 0.9.5-master

Version step used: 0.0.5

Can you please explain me how to fix this problem?

Error: No pubspec.yaml file found with bitrise.io

bitrise.yml

---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
app:
  envs:
  - FLUTTER_COMMANDS: doctor --android-licenses|config --no-analytics|test
trigger_map:
- push_branch: "*"
  workflow: primary
- pull_request_source_branch: "*"
  workflow: primary
workflows:
  primary:
    steps:
    - flutter:
        inputs:
        - version: 1.0.0-stable
        - commands: test

works in local macOS, but on bitrise.io

Agent version:	0.6.1
Start time:	2018-12-20T09:20:18Z
$ bitrise "run" "--config" "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-agent191417272/bitrise.yml" "--inventory" "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-agent191417272/bitrise.secrets.yml" "--json-params-base64" "eyJ3b3JrZmxvdyI6InByaW1hcnkifQ=="
  ██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
  ██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
  ██████╔╝██║   ██║   ██████╔╝██║███████╗█████╗
  ██╔══██╗██║   ██║   ██╔══██╗██║╚════██║██╔══╝
  ██████╔╝██║   ██║   ██║  ██║██║███████║███████╗
  ╚═════╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝
  version: 1.25.0

...........

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
Flutter invocation failed, error: exit status 1
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | flutter (exit code: 3)                                        | 34 sec   |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/DroidsOnRoids/bitrise-step-flutter/issues  |
| Source: https://github.com/DroidsOnRoids/bitrise

is there any guide to setup flutter step in bitrise.io

thansk !

java.lang.NoClassDefFoundError

When i run step flutter doctor i get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
	at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
	at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
	at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
	at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
	at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 5 more
Could not setup Android SDK, error: exit status 1

My configuration:

Flutter version: stable
Root directory of Flutter project: $BITRISE_SOURCE_DIR
Flutter commands to be executed: doctor

lint-gradle-api-26.1.2.jar not found

Hi,
Since few days ago, the package "lint-gradle-api-26.1.2.jar" there isn't anymore on jcenter and the build with your step started to fail.

The same problem happens also locally but I solved this issue according with this link:
https://stackoverflow.com/a/52946279

It suggests to update the 'com.android.tools.build:gradle' from 3.1.2 to 3.2.1

When are you planning to release a new version to fix the problem on your step?

Thanks in advance,
Carmelo

sligtht change for when running android build

Basically you need to accept a license.
Its because your running a slightly older android setup.

x-MacBook-Pro:ci apple$ flutter doctor --android-licenses
A newer version of the Android SDK is required. To update, run:
/Users/apple/Library/Android/sdk/tools/bin/sdkmanager --update

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.