JideGuru / epub_viewer

An epub reader for Flutter. Wrapped around Folioreader.(WIP)
https://pub.dev/packages/epub_viewer
Apache License 2.0
146 stars 80 forks source link

Bug to android 12 #123

Open JuniorFlorentino opened 2 years ago

JuniorFlorentino commented 2 years ago

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl20078375.tmp/base.apk (at Binary XML file line #191): com.folioreader.ui.activity.SearchActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present] Error: Failed to install APK again. Error launching application on sdk gphone64 arm64.

brainy099 commented 2 years ago

I had to workaround it by adding the following lines: In AndroidManifest.xml

<activity 
          android:name = "com.folioreader.ui.activity.SearchActivity"
          android:exported = "true" 
          tools:node="merge" />

and disabling Instantiatable in app/build.gradle

lintOptions {
        disable "Instantiatable"
    }
JuniorFlorentino commented 2 years ago

@brainy099 thank you, it worked