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

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

Сообщение Anonymous »

Я пытался создать простое приложение для Android через ржавчину и ящик ICED-R. После некоторых исследований я нашел инструмент Xbuild, который, казалось, соответствовал тому, что я искал. После того, как я принес свой код в шаблон репо, я попытался создать его, но столкнулся с множеством проблем. Я боролся с большинством из них, но я застрял на том, что делать с тем фактом, что iced_winit и winit не компилируется в Android.
При попытке запустить команду x build -device adb: 29071jegr20518 -release < /code>, я получаю следующее сообщение об ошибке: < /p>
- -release < /code>, я получаю следующее сообщение об ошибке: < /p>

< />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
< /code>
Эта ошибка смешает меня, так как я успешно скомпилировал тот же проект с проблемой MacOS.
Любые возможные исправления или альтернативы.>

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

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

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

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

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

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