diff --git a/android/app/build.gradle b/android/app/build.gradle index 1d519014f..40de810cb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -34,6 +34,8 @@ if (keystorePropertiesFile.exists()) { android { compileSdkVersion 33 + ndkVersion "21.4.7075529" + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/lib/components/library/user_local_tracks.dart b/lib/components/library/user_local_tracks.dart index bd0df9a43..28fa97c1d 100644 --- a/lib/components/library/user_local_tracks.dart +++ b/lib/components/library/user_local_tracks.dart @@ -94,12 +94,10 @@ final localTracksProvider = FutureProvider>((ref) async { } return {"metadata": metadata, "file": f, "art": imageFile.path}; - } on FfiException catch (e) { - if (e.message != "NoTag: reader does not contain an id3 tag") { - rethrow; - } - return {}; } catch (e, stack) { + if (e is FfiException) { + return {}; + } Catcher.reportCheckedError(e, stack); return {}; }