FolioReader-Android icon indicating copy to clipboard operation
FolioReader-Android copied to clipboard

android:attr/android:progressBarStyle not found

Open sgehrman opened this issue 4 years ago • 4 comments

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.

sgehrman avatar Mar 27 '20 04:03 sgehrman

#389 check this issue

KishanViramgama avatar Mar 27 '20 04:03 KishanViramgama

Facing the same issue with Flutter. Work around from #389 is not really applicable for Flutter world.

akshar100 avatar Mar 30 '20 22:03 akshar100

checkout this link https://github.com/FolioReader/FolioReader-Android/issues/406

salmanAndroidDev avatar Apr 02 '20 18:04 salmanAndroidDev

To fix this:

  1. In app module: create a layout 'progress_dialog.xml'
  2. 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.

vsoftphuong avatar Jun 22 '20 09:06 vsoftphuong