TomBursch / kitchenowl

KitchenOwl is a self-hosted grocery list and recipe manager. The backend is made with Flask and the frontend with Flutter. Easily add items to your shopping list before you go shopping. You can also create recipes and add items based on what you want to cook.
https://kitchenowl.org/
GNU Affero General Public License v3.0
1.2k stars 66 forks source link

Bug: Compiling from source package does not exist error #227

Open mariakhala opened 1 year ago

mariakhala commented 1 year ago

Is this urgent?

Yes

What parts are affected

Both

What are the Server/Client versions of KitchenOwl

new

What's the problem 🤔

E:\kitchenowl-main\kitchenowl\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:19: error: package dev.fluttercommunity.plus.device_info does not exist flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.device_info.DeviceInfoPlusPlugin());

i am getting this error

Share your logs

No response

Share your configuration

No response

TomBursch commented 1 year ago

I guess you're trying to compile it from source? Have you tried running flutter packages get?

mariakhala commented 1 year ago

Yes I did

On Tue, Aug 22, 2023, 17:52 Tom Bursch @.***> wrote:

I guess you're trying to compile it from source? Have you tried running flutter packages get?

— Reply to this email directly, view it on GitHub https://github.com/TomBursch/kitchenowl/issues/227#issuecomment-1688232239, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNB56RWECJWZUKRTL3YLMDXWS2RZANCNFSM6AAAAAA3ZLUSIE . You are receiving this because you authored the thread.Message ID: @.***>

TomBursch commented 1 year ago

Hmm strange, neither I nor the CI has a problem with building the android app. I've updated all dependencies. Maybe try again with flutter clean and then this time flutter packages upgrade. What happens if you try to build for a different platform (i.e. windows)? Are you on the latest flutter version?

mariakhala commented 1 year ago

I upgraded flutter version as well but not successful I am not using server i just push the project from GitHub clean and update. This error come should I install newer version of flutter and try again? Or should I setup server? Many thanks

On Tue, Aug 22, 2023, 19:17 Tom Bursch @.***> wrote:

Hmm strange, neither I nor the CI has a problem with building the android app. I've updated all dependencies. Maybe try again with flutter clean and then this time flutter packages upgrade. What happens if you try to build for a different platform (i.e. windows)? Are you on the latest flutter version?

— Reply to this email directly, view it on GitHub https://github.com/TomBursch/kitchenowl/issues/227#issuecomment-1688393603, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNB56VAJDGSTDWGIINY3S3XWTEPZANCNFSM6AAAAAA3ZLUSIE . You are receiving this because you authored the thread.Message ID: @.***>

mariakhala commented 1 year ago

[image: image.png]

On Tue, Aug 22, 2023 at 7:34 PM maria khalid @.***> wrote:

I upgraded flutter version as well but not successful I am not using server i just push the project from GitHub clean and update. This error come should I install newer version of flutter and try again? Or should I setup server? Many thanks

On Tue, Aug 22, 2023, 19:17 Tom Bursch @.***> wrote:

Hmm strange, neither I nor the CI has a problem with building the android app. I've updated all dependencies. Maybe try again with flutter clean and then this time flutter packages upgrade. What happens if you try to build for a different platform (i.e. windows)? Are you on the latest flutter version?

— Reply to this email directly, view it on GitHub https://github.com/TomBursch/kitchenowl/issues/227#issuecomment-1688393603, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNB56VAJDGSTDWGIINY3S3XWTEPZANCNFSM6AAAAAA3ZLUSIE . You are receiving this because you authored the thread.Message ID: @.***>

TomBursch commented 1 year ago

Thanks for being patient. I can't see the image you've sent, and you don't need to run the backend server to compile the frontend. You'll need the latest version of flutter (3.13.X) to compile the app. What is the output of flutter doctor?

TomBursch commented 1 year ago

Just FYI, there was an issue with the android build, although with different logs than the ones you posted. It should be fixed now, I also had to bump the minimum java version to 17.

mariakhala commented 1 year ago

Excellent, thanks for the heads up! Have you updated it on GitHub?

On Wed, Sep 6, 2023 at 1:30 PM Tom Bursch @.***> wrote:

Just FYI, there was an issue with the android build, although with different logs than the ones you posted. It should be fixed now, I also had to bump the minimum java version to 17.

— Reply to this email directly, view it on GitHub https://github.com/TomBursch/kitchenowl/issues/227#issuecomment-1707996246, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNB56UEV3ADVID7P33VVJLXZA7FBANCNFSM6AAAAAA3ZLUSIE . You are receiving this because you authored the thread.Message ID: @.***>

mariakhala commented 12 months ago

i am still getting same error Running Gradle task 'assembleDebug'... E:\kitchenowl-main\kitchenowl-main\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:19: error: package dev.fluttercommunity.plus.device_info does not exist flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.device_info.DeviceInfoPlusPlugin());

^ 1 error

FAILURE: Build failed with an exception.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\mmm developers\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2019 16.8.4) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise • Visual Studio Enterprise 2019 version 16.8.30907.101 X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools

[√] Android Studio (version 2022.3) • Android Studio at C:\Program Files\Android\Android Studio1 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] Connected device (4 available) • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.3086] • Chrome (web) • chrome • web-javascript • Google Chrome 116.0.5845.180 • Edge (web) • edge • web-javascript • Microsoft Edge 116.0.1938.76

[√] Network resources • All expected network resources are available.

! Doctor found issues in 2 categories. Process finished with exit code 0

On Wed, Sep 6, 2023 at 4:36 PM maria khalid @.***> wrote:

Excellent, thanks for the heads up! Have you updated it on GitHub?

On Wed, Sep 6, 2023 at 1:30 PM Tom Bursch @.***> wrote:

Just FYI, there was an issue with the android build, although with different logs than the ones you posted. It should be fixed now, I also had to bump the minimum java version to 17.

— Reply to this email directly, view it on GitHub https://github.com/TomBursch/kitchenowl/issues/227#issuecomment-1707996246, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNB56UEV3ADVID7P33VVJLXZA7FBANCNFSM6AAAAAA3ZLUSIE . You are receiving this because you authored the thread.Message ID: @.***>