PS C:\Users\User\AndroidStudioProjects\testing_F1> flutter build apk
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1520 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
C:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dev\open_filex-4.6.0\android\src\main\java\com\crazecoder\openfile\OpenFilePlugin.java:73: error: cannot find symbol
public static void registerWith(PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
1 error
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':open_filex:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
< /code>
Я пробовал разные вещи: < /p>
- Flutter Pub get, Flutter Clean < /li>
li> Измените код в Build.Grade, Android \ build.gradle, Androidmanifest.xml - Revensall Flutter и Android Studio
Вот некоторые коды, которые, я думаю, являются причиной того, что файл APK не успешно построен. /p>
Это androidmanifest.xml с ошибкой неразрешенного класса '{applicationName}' < /p>
< /code>
mainactivity.kt и GeneratedPluginRearNater.java имеет множество ошибок, таких как нерешенная ссылка: внедрение, не может разрешить символ «Androidx», не может разрешить символ «log». Если вам нужен весь мой код, прокомментируйте ниже.
Подробнее здесь: https://stackoverflow.com/questions/794 ... yp-project
Мобильная версия