Из-за периодической блокировки нашего сайта РКН сервисами, просим воспользоваться резервным адресом:
Загрузить через dTub.ru Загрузить через ycliper.com Загрузить через ClipSaver.ruУ нас вы можете посмотреть бесплатно Resolving Flutter Build Issues: wechat_assets_picker on Android или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Роботам не доступно скачивание файлов. Если вы считаете что это ошибочное сообщение - попробуйте зайти на сайт через браузер google chrome или mozilla firefox. Если сообщение не исчезает - напишите о проблеме в обратную связь. Спасибо.
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
Encountering build issues in your Flutter app after installing `wechat_assets_picker`? This guide explains how to resolve the error caused by the Android SDK version setup. --- This video is based on the question https://stackoverflow.com/q/66848640/ asked by the user 'RemeJuan' ( https://stackoverflow.com/u/1451718/ ) and on the answer https://stackoverflow.com/a/66979398/ provided by the user 'RemeJuan' ( https://stackoverflow.com/u/1451718/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions. Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: Cannot build Flutter App (Android) after install wechat_assets_picker Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l... The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license. If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com. --- Troubleshooting Flutter Build Issues with wechat_assets_picker on Android When developing a Flutter app, you might encounter errors that can be puzzling and frustrating, especially when integrating new packages like wechat_assets_picker. If you've just installed this package and are facing build errors for Android, you’re not alone. Many developers have faced similar issues, and in this post, we'll walk through how to resolve these errors so you can get back to building your app smoothly. The Problem After installing wechat_assets_picker, users reported encountering errors during the build process. The specific error message might look something like this: [[See Video to Reveal this Text or Code Snippet]] This indicates that the build process cannot resolve certain references within the Android code. One particular line with @ RequiresApi(Build.VERSION_CODES.R) suggests that there are dependencies calling for features only available in Android 11 (API level 30). Understanding the Cause The root of the issue typically lies in the Android SDK setup within your Flutter project, particularly with the compileSdkVersion. Initially, the project might have been set with the following configurations: minSdkVersion: 19 targetSdkVersion: 21 compileSdkVersion: 29 Error Breakdown Unresolved Reference: The Android build is trying to reference APIs that are not available in the current SDK setup. This is particularly evident from the error message highlighting certain unresolved references. API Level Compatibility: The directive @ RequiresApi(Build.VERSION_CODES.R) means that certain functionality is only available on devices running Android 11 and above. If your project is not compiling against the proper SDK version, the build will fail. The Solution To resolve this issue, you need to update your compileSdkVersion to the required level. Here’s how to implement this fix: Navigate to Your app/build.gradle File: This is where Android SDK settings are configured. Update compileSdkVersion: [[See Video to Reveal this Text or Code Snippet]] Set targetSdkVersion Appropriately: This can also be changed to match the compileSdkVersion: [[See Video to Reveal this Text or Code Snippet]] Adjust the minSdkVersion: Ensure that the minimum is compatible with what the package requires. If 19 is working for you and does not throw any errors, you can leave it as is. Sync and Rebuild: After making these changes, sync your Gradle files and perform a clean build. You can do this by running: [[See Video to Reveal this Text or Code Snippet]] Conclusion By updating your compileSdkVersion to 30, you should be able to resolve the build issues associated with the wechat_assets_picker package in your Flutter application. Always remember to verify the required SDK versions of any third-party packages you integrate into your projects, as they can significantly affect your build environment. If you continue to experience issues, refer back to the documentation for both Flutter and the package for any additional settings or version compatibility notes. Happy coding!