1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Flutter2 - Can't find service: package (Android Studio -Windows10)

Discussão em 'Mobile' iniciado por Stack, Outubro 13, 2024 às 09:32.

  1. Stack

    Stack Membro Participativo

    On upgrading a working project to Flutter_2 and running it , gives the error below.

    As per answer to similar question ,Avd Data(Pixel_3a) has been wiped.

    How to resolve this ?

    ERROR

    Can't find service: package / Can't find service: activity


    FULL ERROR

    Launching lib\forms\validateForm1.dart on sdk gphone x86 arm in debug mode...
    Running Gradle task 'assembleDebug'...
    √ Built build\app\outputs\flutter-apk\app-debug.apk.
    cmd: Can't find service: activity
    Installing build\app\outputs\flutter-apk\app.apk...
    Error: ADB exited with exit code 1
    Performing Streamed Install

    adb: failed to install F:\Script\Flutter\myapp\build\app\outputs\flutter-apk\app.apk: cmd: Can't find service: package
    Error launching application on sdk gphone x86 arm.


    Flutter Doctor

    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel dev, 2.1.0-10.0.pre, on Microsoft Windows [Version 10.0.18363.1379], locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    [X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
    [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.3)
    [√] Android Studio (version 4.1.0)
    [√] VS Code (version 1.54.1)
    [√] Connected device (2 available)

    Continue reading...

Compartilhe esta Página