question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't read some books.

See original GitHub issue

Im using this library to read ebooks from my app. Recently I found that I can’t read some books. Getting following error in Log.

FATAL EXCEPTION: main Process: com.jskaleel.fte, PID: 2165 java.lang.IllegalArgumentException: META-INF is not a constant in com.folioreader.util.AppUtil$FileType at java.lang.Enum.valueOf(Enum.java:200) at com.folioreader.util.AppUtil$FileType.valueOf(AppUtil.java:77) at com.folioreader.util.AppUtil.getTypeOfOPF(AppUtil.java:502) at com.folioreader.util.AppUtil.getPathOPF(AppUtil.java:441) at com.folioreader.activity.FolioActivity.readHTmlString(FolioActivity.java:434) at com.folioreader.activity.FolioActivity.getChapterHtmlContent(FolioActivity.java:413) at com.folioreader.fragments.FolioPageFragment.initWebView(FolioPageFragment.java:172) at com.folioreader.fragments.FolioPageFragment.onCreateView(FolioPageFragment.java:152) at android.support.v4.app.Fragment.performCreateView(Fragment.java:2087) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1113) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1295) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801) at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1643) at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679) at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143) at com.folioreader.view.DirectionalViewpager.populate(DirectionalViewpager.java:1332) at com.folioreader.view.DirectionalViewpager.populate(DirectionalViewpager.java:1113) at com.folioreader.view.DirectionalViewpager.setAdapter(DirectionalViewpager.java:521) at com.folioreader.activity.FolioActivity.configFolio(FolioActivity.java:356) at com.folioreader.activity.FolioActivity.loadBook(FolioActivity.java:171) at com.folioreader.activity.FolioActivity.access$700(FolioActivity.java:65) at com.folioreader.activity.FolioActivity$3$1.run(FolioActivity.java:161) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:234) at android.app.ActivityThread.main(ActivityThread.java:5526) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Please help to fix out this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pablo384commented, Dec 5, 2016

Try paste this into your buildgradle module app. Down of buildTypes.

packagingOptions {         exclude ‘META-INF/ASL2.0’         exclude ‘META-INF/DEPENDENCIES.txt’         exclude ‘META-INF/LICENSE.txt’         exclude ‘META-INF/NOTICE.txt’         exclude ‘META-INF/NOTICE’         exclude ‘META-INF/LICENSE’         exclude ‘META-INF/DEPENDENCIES’         exclude ‘META-INF/notice.txt’         exclude ‘META-INF/license.txt’         exclude ‘META-INF/dependencies.txt’         exclude ‘META-INF/LGPL2.1’         exclude ‘META-INF/services/javax.annotation.processing.Processor’     }

0reactions
mahavir155commented, Dec 7, 2016

fixed in v0.2.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't read books anymore. What is happening?
It maybe because it has been a while since you concentrated on something for a long time, and since reading requires concentration you...
Read more >
Why can't I comprehend any book I read
When I am reading a book, I find that I have to go over the text several times to understand what the text...
Read more >
I Can't Read a Book Right Now—And I Am Not Alone
There's a quote from John Green, the author who made you ugly cry with The Fault in Our Stars, that perfectly encapsulates what...
Read more >
Why it's so hard to read a book right now, explained by ...
If you can't see something, you don't know when it's going to end, you don't know enough about it, you just show a...
Read more >
Mental Illness Can Make It Hard to Read. Here's Why
Many people don't regard them as “real” reading, or they believe people who prefer audiobooks are just lazy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found