pinkfish / flutter_rtmppublisher

Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
BSD 3-Clause "New" or "Revised" License
95 stars 121 forks source link

INSTALL_FAILED_DEXOPT on 21 SDK #31

Open tarder-llc opened 3 years ago

tarder-llc commented 3 years ago

When running new project with you package on 28 SDK- all fine, but have some problems on 21 SDK(Android 5). All recommendations written in the "getting started" section have been implemented.

Launching lib\main.dart on ASUS Z00AD in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Package install error: Failure [INSTALL_FAILED_DEXOPT]
Error launching application on ASUS Z00AD.

If i remove "camera_with_rtmp" from pubsec - all fine. Tried all answers from stackoverflow, but without result.

tarder-llc commented 3 years ago

Here's what "logcat" says:

D/PackageManager(  944): Renaming /data/app/vmdl616946371.tmp to /data/app/com.myapp-1
W/ActivityManager(  944): getRunningAppProcesses: caller 10017 is using old GET_TASKS but privileged; allowing
W/ActivityManager(  944): getRunningAppProcesses: caller 10017 is using old GET_TASKS but privileged; allowing
W/ActivityManager(  944): getRunningAppProcesses: caller 10017 is using old GET_TASKS but privileged; allowing
I/art     (  944): DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/x86/data@app@com.myapp-1@base.apk@classes.dex' for file location '/data/app/com.myapp-1/base.apk': Failed to open oat filename for reading: No such file or directory
I/art     (  944): DexFile_isDexOptNeeded failed to open oat file '/data/app/com.myapp-1/x86/base.odex' for file location '/data/app/com.myapp-1/base.apk': Failed to open oat filename for reading: No such file or directory