def flutterRoot = localProperties.getProperty(‘flutter.sdk’)
if (flutterRoot == null) {
throw new GradleException(“Flutter SDK not found. Define location with flutter.sdk in the local.properties file.”)
}
app\build.gradle da GradleException hatası alıyorum onu da belirteyim. ayrıca Flutter doctor sonucum da şöye:
C:\src\flutter\flutter\bin\flutter.bat doctor –verbose
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.19041.630], locale tr-TR)
• Flutter version 1.12.13+hotfix.8 at C:\src\flutter\flutter
• Framework revision 0b8abb4724 (10 months ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\omerkalfa\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
! Some Android licenses not accepted. To resolve this, run: flutter doctor –android-licenses
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 47.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] Connected device (1 available)
• SNE LX1 • HVYDU19124005950 • android-arm64 • Android 10 (API 29)
! Doctor found issues in 1 category.
YALNIZ hatayı çözmek için flutter doctor – andoid-license ı çalıştıramıyorum ve
_Error running ‘flutter doctor –android-licenses’: Cannot run program “flutter” (in directory “C:\ornekler\firebase\flutter_app\firebase”): CreateProcess error=2, Sistem belirtilen dosyayı bulamıyor
hatasını alıyorum. tamamen şaşırmış durumdayım. zaten halimden de bellidir.