Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean install run fail #2

Open
wayneconnolly opened this issue Jun 21, 2023 · 0 comments
Open

Clean install run fail #2

wayneconnolly opened this issue Jun 21, 2023 · 0 comments

Comments

@wayneconnolly
Copy link

Hi - looks like a great project. I tried to run it after flutter pub get and it fails with the below (I have no problem building other projects. I did add a .env (it is blank) - could you send a example env please as maybe that is the issue?

╭─ ♥ 13:03 |       flutter_riverpod_boilerplate_project
╰─ flutter run lib/main.dart
Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
../../../.pub-cache/hosted/pub.dev/flutter_screenutil-5.5.4/lib/src/screen_util.dart:58:5: Error: Type 'FlutterWindow' not found.
FlutterWindow? window,
^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_screenutil-5.5.4/lib/src/screen_util.dart:58:5: Error: 'FlutterWindow' isn't a type.
FlutterWindow? window,
^^^^^^^^^^^^^
lib/presentation/style/app_theme.dart:11:7: Error: No named parameter with the name 'brightness'.
brightness: Brightness.light,
^^^^^^^^^^
../../../snap/flutter/common/flutter/packages/flutter/lib/src/material/app_bar_theme.dart:29:9: Context: Found this candidate, but the arguments don't match.
const AppBarTheme({
^^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/home/wayne/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1201

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/home/wayne/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1

  • 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.

BUILD FAILED in 2s
Running Gradle task 'assembleDebug'... 3.1s
Exception: Gradle task assembleDebug failed with exit code 1 ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant