简体   繁体   English

Flutter 错误:您的项目需要更高的 compileSdkVersion

[英]Flutter Error: Your project requires a higher compileSdkVersion

when I clone and run the project, it shows: Your project requires a higher compileSdkVersion.So I did what it said, which to change:当我克隆并运行该项目时,它显示:您的项目需要更高的 compileSdkVersion。所以我按照它说的做了,要更改:

android {                                                                                                                    │
│   compileSdkVersion 31                                                                                                       │
│ }     

in android\app\build.gradle.在 android\app\build.gradle 中。 But then it show another error: failed to install D:\programming\Flutter_Projects\mi_card_flutter\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching application on AOSP on IA Emulator.但随后它显示另一个错误: failed to install D:\programming\Flutter_Projects\mi_card_flutter\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] 在 IA Emulator 上的 AOSP 上启动应用程序时出错。

INSTALL_FAILED_INSUFFICIENT_STORAGE 错误意味着没有足够的空间来安装应用程序,请尝试通过卸载不需要的应用程序或从您尝试在其上运行的物理设备或模拟器中删除不需要的文件来清理一些空间。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NativeScript - Android 运行错误“androidx.fragment:fragment:1.4.1 requires 'compileSdkVersion' to be set to 31 or higher” - NativeScript - Android run error "androidx.fragment:fragment:1.4.1 requires 'compileSdkVersion' to be set to 31 or higher" 活动/片段错误中的自定义相机 X(需要将“compileSdkVersion”设置为 32 或更高) - Custom Camera X inside Activity/Fragment Error ( requires 'compileSdkVersion' set to 32 or higher) Android Studio 依赖 'androidx.browser:browser:1.4.0' 要求 'compileSdkVersion' 设置为 31 或更高 - Android Studio Dependency 'androidx.browser:browser:1.4.0' requires 'compileSdkVersion' to be set to 31 or higher 错误:compileSdkVersion android-21需要使用JDK 7进行编译 - Error:compileSdkVersion android-21 requires compiling with JDK 7 错误:compileSdkVersion android-21需要使用JDK 7进行编译 - windows - Error:compileSdkVersion android-21 requires compiling with JDK 7 - windows Flutter “您需要 Java 11 或更高版本才能使用此版本的 Gradle 构建您的应用程序。” 错误 - Flutter "You need Java 11 or higher to build your app with this version of Gradle." error 在 Android 上扑动 compileSdkVersion 和 targetSdkVersion - flutter compileSdkVersion and targetSdkVersion on Android 错误:[功能]需要商业(或更高)许可证 - Error: [feature] requires a Business (or higher) license 错误:您的项目升级后需要更新版本的 Kotlin Gradle 插件 - Error: Your project requires a newer version of the Kotlin Gradle plugin after upgrade it 为什么AndroidX需要将compileSdkVersion设置为28或更高 - Why AndroidX needs compileSdkVersion set to be 28 or higher
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM