Primeiro, adicione ao build.gradle de nível de projeto:
buildscript {
repositories {
//...
maven {
url "https://plugins.gradle.org/m2/"
}| Fatal Exception: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again | |
| at java.lang.Thread.nativeCreate(Thread.java) | |
| at java.lang.Thread.start(Thread.java:733) | |
| at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:975) | |
| at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393) | |
| at okhttp3.RealCall$AsyncCall.executeOn(RealCall.java:154) | |
| at okhttp3.Dispatcher.promoteAndExecute(Dispatcher.java:204) | |
| at okhttp3.Dispatcher.enqueue(Dispatcher.java:143) | |
| at okhttp3.RealCall.enqueue(RealCall.java:93) | |
| at retrofit2.OkHttpCall.enqueue(OkHttpCall.java:147) |
| //Possible solution for https://stackoverflow.com/questions/77187279/is-it-possible-to-provide-a-null-implementation-when-registering-something-on-fl/77187634#77187634 | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:get_it/get_it.dart'; | |
| class OurOwnInterface {} | |
| void main() { | |
| if (kDebugMode) { |