can't build, flutter build apk fails
- Dominant language
- Dart
- Stars
- 2.5k
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
hey flutter noob here, great app! I wanna try adding a few options like file conversion but when trying to compile the app I'm getting this on the terminal
Im using a fork of VSCode on windows 10
PS C:\Users\Aziz\3D Objects\Openlib> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.5, on Microsoft Windows [Version 10.0.19044.3803],
locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at
.\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its
default components
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.87.1)
[√] Connected device (2 available)
[√] Network resources
! Doctor found issues in 2 categories.
PS C:\Users\Aziz\3D Objects\Openlib> flutter build apk
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Aziz\3D Objects\Openlib\android\app\build.gradle' line: 53
* What went wrong:
A problem occurred evaluating project ':app'.
> Cannot invoke method toInteger() on null object
* 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 1s
Running Gradle task 'assembleRelease'... 2,629ms
Gradle task assembleRelease failed with exit code 1
Contributor guide
Assessment
This issue has not been assessed yet.