I want to my flutter project on a virtual device in Android Studio, but it always doesn’t work. I always receive this code error
`Running Gradle task 'assembleDebug'...
√ Built buildappoutputsflutter-apkapp-debug.apk
Installing buildappoutputsflutter-apkapp-debug.apk...
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:UsersLenovoDesktopNCKHright_premium_brainbuildappoutputsflutter-apkapp-debug.apk: Failure [INSTALL_FAILED_INVALID_APK: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
Error launching application on sdk gphone16k x86 64.`
I want to run it, but it’s extremely confusing for me.
Recognized by Mobile Development Collective
2
**first You need to clear cache with the commands **
flutter clean
flutter pub get
flutter build apk
**Make sure that enable of multidex in build gradle **
android {
defaultConfig {
…
multiDexEnabled true
}
}
If thats Not work than repair the Corrupted Files
flutter pub cache repair