Iced_winit не может скомпилироваться в Android?Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Iced_winit не может скомпилироваться в Android?

Сообщение Anonymous »

Я пытался создать простое приложение для Android с помощью ржавчины и ящика Iced-RS. После некоторых исследований я нашел инструмент xbuild, который, похоже, соответствовал тому, что я искал. После добавления моего кода в репозиторий шаблонов я попытался его собрать, но столкнулся с многочисленными проблемами. Я справился с большинством из них, но застрял в том, что делать с тем фактом, что Iced_winit и winit не компилируются в Android.
При попытке запустить команду x build --device adb:29071JEGR20518 --release я получаю следующее сообщение об ошибке:

Код: Выделить всё

error[E0432]: unresolved import `winit::platform::modifier_supplement`
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iced_winit-0.13.0/src/conversion.rs:198:42
|
198 |                     use winit::platform::modifier_supplement::KeyEventExtModifierSupplement;
|                                          ^^^^^^^^^^^^^^^^^^^ could not find `modifier_supplement` in `platform`
|
note: found an item that was configured out
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.12/src/platform/mod.rs:52:9
|
52  | pub mod modifier_supplement;
|         ^^^^^^^^^^^^^^^^^^^
note: the item is gated here
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.12/src/platform/mod.rs:44:1
|
44  | / #[cfg(any(
45  | |     windows_platform,
46  | |     macos_platform,
47  | |     x11_platform,
...   |
50  | |     docsrs
51  | | ))]
| |___^

error[E0432]: unresolved import `winit::platform::modifier_supplement`
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iced_winit-0.13.0/src/conversion.rs:213:42
|
213 |                     use winit::platform::modifier_supplement::KeyEventExtModifierSupplement;
|                                          ^^^^^^^^^^^^^^^^^^^ could not find `modifier_supplement` in `platform`
|
note: found an item that was configured out
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.12/src/platform/mod.rs:52:9
|
52  | pub mod modifier_supplement;
|         ^^^^^^^^^^^^^^^^^^^
note: the item is gated here
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.12/src/platform/mod.rs:44:1
|
44  | / #[cfg(any(
45  | |     windows_platform,
46  | |     macos_platform,
47  | |     x11_platform,
...   |
50  | |     docsrs
51  | | ))]
| |___^

Compiling manganis v0.6.2
error[E0599]: no method named `key_without_modifiers` found for struct `winit::event::KeyEvent` in the current scope
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iced_winit-0.13.0/src/conversion.rs:199:27
|
199 |                     event.key_without_modifiers()
|                           ^^^^^^^^^^^^^^^^^^^^^ method not found in `winit::event::KeyEvent`

error[E0599]: no method named `text_with_all_modifiers` found for struct `winit::event::KeyEvent` in the current scope
--> /Users/mads/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iced_winit-0.13.0/src/conversion.rs:215:27
|
215 |                     event.text_with_all_modifiers().map(SmolStr::new)
|                           ^^^^^^^^^^^^^^^^^^^^^^^ method not found in `winit::event::KeyEvent`

Compiling infer v0.11.0
Compiling dioxus-logger v0.6.2
Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `iced_winit` (lib) due to 4 previous errors
Эта ошибка меня смущает, поскольку я успешно скомпилировал тот же проект в macOS без проблем.
Любые возможные исправления или альтернативы очень приветствуются.

Подробнее здесь: https://stackoverflow.com/questions/797 ... to-android
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»