FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.24k stars 715 forks source link

Error In Progress Bar Res File #406

Open dan15h opened 4 years ago

dan15h commented 4 years ago

Issue / Feature - error: resource android:attr/android:progressBarStyle not found.

FolioReader version - 0.5.4 Android SDK - all Mobile / Tablet / Emulator Info - all Crash / Error - C:\Users\user.gradle\caches\transforms-2\files-2.1\1ef74cdf85927d9b084bf9bd34edc7d8\folioreader-0.5.4\res\layout\progress_dialog.xml:13: AAPT: error: resource android:attr/android:progressBarStyle not found.

Steps to reproduce / Describe in detail -

jankyjames commented 4 years ago

I am on gradle 5.4.1 right now and updating gradle is the only thing I've done since last compiling the app. I also get this same error, now.

jankyjames commented 4 years ago

Issue / Feature - error: resource android:attr/android:progressBarStyle not found.

FolioReader version - 0.5.4 Android SDK - all Mobile / Tablet / Emulator Info - all Crash / Error - C:\Users\user.gradle\caches\transforms-2\files-2.1\1ef74cdf85927d9b084bf9bd34edc7d8\folioreader-0.5.4\res\layout\progress_dialog.xml:13: AAPT: error: resource android:attr/android:progressBarStyle not found.

Steps to reproduce / Describe in detail -

@dan15h , create a file named progress_dialog.xml in your layout folder and paste in ```<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">

<LinearLayout
    android:id="@+id/layout_loading"
    android:layout_width="fill_parent"
    android:layout_height="fill_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>

```

Petterpx commented 4 years ago

I also encountered this problem, how can I solve it? Currently, error: resource android: attr / android: progressBarStyle not