Flutter 构建错误 INSTALL_FAILED_INVALID_APK:INSTALL_FAILED_INVALID_APK:无法提取本机库,res=-2

问题描述 投票:0回答:1

当我在登录页面上工作时,我添加了继续使用谷歌。之后:

Launching lib/main.dart on sdk gphone16k arm64 in debug mode...
Running Gradle task 'assembleDebug'...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Installing build/app/outputs/flutter-apk/app-debug.apk...
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install /Users/username/{Project Path}/build/app/outputs/flutter-apk/app-debug.apk: Failure [INSTALL_FAILED_INVALID_APK: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
Error launching application on sdk gphone16k arm64.

我需要获得应用程序的构建完成版本

flutter firebase firebase-authentication google-signin
1个回答
0
投票

尝试在 android/app/build.gradle 文件中指定支持的架构

android {
defaultConfig {
    ndk {
        abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
    }
}

}

© www.soinside.com 2019 - 2024. All rights reserved.