Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android:attr/android:progressBarStyle not found #440

Open
sgehrman opened this issue Mar 27, 2020 · 4 comments
Open

android:attr/android:progressBarStyle not found #440

sgehrman opened this issue Mar 27, 2020 · 4 comments

Comments

@sgehrman
Copy link

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.

@KishanViramgama
Copy link
Contributor

#389 check this issue

@akshar100
Copy link

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

@salmanAndroidDev
Copy link

checkout this link
#406

@vsoftphuong
Copy link

vsoftphuong commented Jun 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants