Acabo de iniciar un proyecto de flutter con el Android Studio, y asi básico como estaba le de a run, para que lo corriera en el emulador de Genymotion. Al intentar correrlo, salta un error. Tengo todo instalado, ya reinicie los programas y el "Flutter doctor" no tira ningun error
El error:
Launching lib\main.dart on Google Nexus 6, 8 0, API 26, 1440x2560 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: C:\Users\Tomas\AndroidStudioProjects\mi_app\android\gradlew.bat app:properties:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Tomas\AndroidStudioProjects\mi_app\android\app\build.gradle' line: 25
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Finished with error: Please review your Gradle project setup in the android/ folder.
Ya modifique el archivo sin embargo no figuraba en $flutterRoot (No habia ninguna carpeta con ese nombre), pero el nombre del archivo era el mismo y solo agregue google(), lo que figura ahora es esto:
Launching lib\main.dart on Google Nexus 6, 8 0, API 26, 1440x2560 in debug mode... Initializing gradle... Resolving dependencies... timeout waiting for the application to start <-----Aqui el error Gradle task 'assembleDebug'... Built build\app\outputs\apk\debug\app-debug.apk. Installing build\app\outputs\apk\app.apk... D/EGL_emulation( 2293): eglCreateContext: 0xdaec1ce0: maj 2 min 0 rcv 2 E/EGL_emulation( 2293): tid 2345: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2293): Failed to set EGL_SWAP_BEHAVIOR on surface 0xd85a4b40, error=EGL_BAD_MATCH D/EGL_emulation( 2293): eglCreateContext: 0xdaec1c20: maj 2 min 0 rcv 2 D/ ( 2293): HostConnection::get() New Host Connection established 0xc2caca40, tid 2311 W/ ( 2293): Unrecognized GLES max version string in extensions: Syncing files to device Google Nexus 6, 8 0, API 26, 1440x2560...
Igualmente el emulador ahora SI se ejecuta.