Closed Gnitry closed 1 year ago
I cloned repository again, tried to build, but got this error:
PS C:\sources\Bonsoir\bonsoir\example> flutter run
Resolving dependencies... (1.1s)
collection 1.17.1 (1.17.2 available)
+ device_info_plus 9.0.2
+ device_info_plus_platform_interface 7.0.0
+ ffi 2.0.2
+ file 7.0.0
+ flutter_web_plugins 0.0.0 from sdk flutter
material_color_utilities 0.2.0 (0.5.0 available)
+ win32 5.0.3
+ win32_registry 1.1.1
These packages are no longer being depended on:
- device_info 2.0.3
- device_info_platform_interface 2.0.1
Changed 9 dependencies!
Launching lib\main.dart on SM A336E in debug mode...
Upgrading build.gradle
Incorrect package="fr.skyost.bonsoir_example" found in source AndroidManifest.xml: C:\sources\Bonsoir\bonsoir\example\android\app\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="fr.skyost.bonsoir_example" from the source AndroidManifest.xml: C:\sources\Bonsoir\bonsoir\example\android\app\src\main\AndroidManifest.xml.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Incorrect package="fr.skyost.bonsoir_example" found in source AndroidManifest.xml: C:\sources\Bonsoir\bonsoir\example\android\app\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="fr.skyost.bonsoir_example" from the source AndroidManifest.xml: C:\sources\Bonsoir\bonsoir\example\android\app\src\main\AndroidManifest.xml.
* 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 1m 15s
Running Gradle task 'assembleDebug'... 76.4s
Exception: Gradle task assembleDebug failed with exit code 1
After I removed package from AndroidManifest, another error appeared (about minSdkVersion).
After setting minSdkVersion to 19, another error appeared:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bonsoir_android:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
Just updated and tested the example app. It should work now.
Yes. Thanks!
Summary When trying to build the example, error occurs:
To Reproduce
bosoir/example
flutter run
Flutter doctor