سلام در موقع خروجی گرفتن برنامه این خطارو دارم باید چیکار کنم ؟
@hesammousavi
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following SDK components:
platforms;android-28 Android SDK Platform 28
The SDK directory is not writable (C:\Program Files (x86)\Androidstudio\SDK)
* 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 3s
Finished with error: Gradle task assembleDebug failed with exit code 1
@hesammousavi
استاد به چه صورت این دسترسی انجام میشه؟ در بخش تنظیمات دنبال چه قسمتی باید برم؟
شاید پاسخ شما همینجا باشد
مهندس من دسترسی رو ایجاد کردم این پیام رو میده:
Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.
که محتوای فلاتر داکتر هم اینه :
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.17763.914], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
X Android SDK file not found: D:\Androidstudio\SDK\platforms\android-29\android.jar.
[√] Android Studio (version 3.5)
[√] Connected device (1 available)
! Doctor found issues in 1 category.
مهندس من sdk هارو در درایو D همه رو گذاشتم و همه رو هم آپدیت کردم 29 و 28.0.3 هم همه رو در همون پوشه است در درایو C هم یه پوشه Sdk دارم چرا برنامه ای ساده من رو که قبلش اجرا میکرد و من یه مشکلی دیگه داشتم الان همون رو اینجوری میکنه>
@hesammousavi
مهندس در صفحه خود دوره سوالی پرسیدم پاسخ ندادید دارم به ارور های بیشتری میرسم تا دیشب دوربین یافت نشد اومده بود ولی الان همونم نمیاد و در موقع ران کردن ارور پایین رو میده:
Error on line 21, column 5 of pubspec.yaml: A dependency may only have one source.
╷
21 │ ┌ sdk: flutter
22 │ │
23 │ │
24 │ │
25 │ │ # The following adds the Cupertino Icons font to your application.
26 │ │ # Use with the CupertinoIcons class for iOS style icons.
27 │ │ cupertino_icons: ^0.1.2
28 │ │ camera: ^0.5.7+2
29 │ │
30 │ └
╵
Running "flutter pub get" in gap...
pub get failed (65; ╵)@hesammousavi
مهندس درستش کردم اما من همینجا می مونم تا دیگه راهنماییم کنید فعلا یک صفحه سفید دارم که نوشته دوربین یافت نشد و خبری از دوربین در برنامه نیست
این هم در موقع ران کردن بهم داد :
I/flutter (14333): Another exception was thrown: NoSuchMethodError: The getter 'height' was called on null.
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 4.3s
√ Built build\app\outputs\apk\debug\app-debug.apk.
Syncing files to device Android SDK built for x86...
6,293ms (!)
🔥 To *** reload changes while running, press "r". To *** restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:1258/btrO_CDN750=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".