razzo04 / rhasspy-mobile-app

A simple mobile app for rhasspy.
MIT License
118 stars 13 forks source link

Building From Source #28

Open jolobrife opened 2 years ago

jolobrife commented 2 years ago

Hi

New here

I've android app running 'quite fine'.

Trying to Buid from source in order to be able to modify some features ¿? but always get failed dependancies:

"_D:...\Git projects\rhasspy-mobile-app>flutter build apk --ignore-deprecation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application is created using an older version of the Android embedding. It is being deprecated in favor of Android embedding v2. Follow the steps at

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to ignore this check and continue with the deprecated v1 embedding. However, the v1 Android embedding will be removed in future versions of Flutter. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The detected reason was:

D:\Proyectos\Git projects\rhasspy-mobile-app\android\app\src\main\AndroidManifest.xml uses android:name="io.flutter.app.FutterApplication" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Because mockito >=4.1.1+1 <4.1.2 depends on test_api >=0.2.1 <0.4.0 and mockito >=4.0.0 <4.1.1+1 depends on test_api ^0.2.1, mockito >=4.0.0 <4.1.2 requires test_api >=0.2.1 <0.4.0. And because mockito >=4.1.2 <=5.0.0-nullsafety.7 depends on test_api ^0.2.19-nullsafety and every version of flutter_test from sdk depends on test_api 0.4.8, mockito >=4.0.0 <=5.0.0-nullsafety.7 is incompatible with flutter_test from sdk. So, because rhasspy_mobile_app depends on both flutter_test from sdk and mockito ^4.1.1, version solving failed. Running "flutter pub get" in rhasspy-mobile-app...
pub get failed (1; So, because rhasspy_mobile_app depends on both fluttertest from sdk and mockito ^4.1.1, version solving failed.) "

I have tried changing some version numbers but nothing works.

Would any help on this be possible?

Windows 11, Available Android Studio 2021.2.1 and also Visual Studio Code 1.68

blurry-code commented 1 year ago

Same problem. I tried to solve the dependency incompatibilities, but to no avail.

antonyclarke commented 1 year ago

I've had the same issue here too but I eventually got it to work - you need to use Flutter 2.0.0-6 to pull in the right dependency versions to get it to build. At this point though the release version wasn't running on my phone (Pixel 5) correctly so I have to deploy a debug build with flutter run rather than flutter build apk.