简体   繁体   English

当我尝试在我的真实设备上运行我的项目时出现错误

[英]I have error when I try to run my project on my real device

I try to run my project on my device and I get this error: Error: ADB exited with exit code 1 Performing Streamed Install我尝试在我的设备上运行我的项目并收到此错误:错误:ADB 退出并退出代码 1 执行流式安装

adb: failed to install E:\flutter-file\chat_app\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1346042202.tmp/base.apk (at Binary XML file line #7): Requires newer sdk version #28 (current version is #25)] Error launching application on SM J250F.

  1. Please use latest android studio请使用最新的 android 工作室
  2. Go to build.gradle Go 至 build.gradle
    set your targetSdkVersion,compileSdkVersion to 31. set your buildToolsVersion "30.0.3"设置你的 targetSdkVersion,compileSdkVersion 为 31。设置你的 buildToolsVersion "30.0.3"

Please keep follow goole latest policy.请继续遵循 goole 最新政策。
Meet Google Play's target API level requirement 满足 Google Play 的目标 API 级别要求
New apps must target Android 12 (API level 31) or higher;新应用程序必须以 Android 12(API 级别 31)或更高版本为目标; except for Wear OS apps, which must target Android 11 (API level 30) or higher.除了 Wear OS 应用,它必须以 Android 11(API 级别 30)或更高版本为目标。

Starting in November 2022, app updates must target API level 31 or above and adjust for behavioral changes in Android 12.从 2022 年 11 月开始,应用程序更新必须针对 API 31 级或更高级别,并针对 Android 12 中的行为变化进行调整。

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

相关问题 当我尝试在真实设备上运行我的应用程序时,Android Studio 显示没有连接的设备 - Android Studio Shows No Connected Device When I try to run my app on a real device 当我在真实设备上点击颤振运行时,在 VS Code 中显示错误 - flutter In VS Code show error when I hit flutter run on my real device 成功生成了签名的Apk,但是当我尝试运行我的项目时,出现错误 - Generated signed Apk successfully but when I try to Run my project, I get an error 在android中,当我尝试运行我的项目时失败了吗? - In android when i try to run my project it fails? 当我尝试运行我的android项目时找不到某些文件 - some files are not found when I try to run my android project 我无法在 android(模拟器和真实设备)上运行我的 flutter 项目。 我该如何解决? - I'm not able to run my flutter project on android (emulator & real device). How can I fix it? 当我在设备中运行项目时,CardView不可见 - CardView is not visible when I run my project in a device 当我想运行我的项目时发生了崩溃 - I have a crash when I want to run my project 当我尝试在 React Native 中导入我的组件时出错 - have an error when i try import my component in react native 当我尝试在 android 上运行我的应用程序时出错 - Error when i try to run my app on android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM