FolioReader-Android
FolioReader-Android copied to clipboard
android:attr/android:progressBarStyle not found
I'm on flutter, and I'm trying to use epub_kitty.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed /home/steve/.gradle/caches/transforms-2/files-2.1/83e6eba7a142602983d44233c83da410/folioreader-0.5.4/res/layout/progress_dialog.xml:13: AAPT: error: resource android:attr/android:progressBarStyle not found.
#389 check this issue
Facing the same issue with Flutter. Work around from #389 is not really applicable for Flutter world.
checkout this link https://github.com/FolioReader/FolioReader-Android/issues/406
To fix this:
- In app module: create a layout 'progress_dialog.xml'
- Copy and past this content
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/layout_loading"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<ProgressBar
android:id="@+id/loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?android:attr/progressBarStyle" />
<TextView
android:id="@+id/label_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textSize="18sp"
android:textColor="@android:color/white"
android:text="@string/loading" />
</LinearLayout>
</RelativeLayout>
- Done, it will replace file has the same name in library.