FolioReader / FolioReader-Android

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

Gradle dependency importing issue for 0.5.3 #335

Open HardikChauhanSA opened 5 years ago

HardikChauhanSA commented 5 years ago

Issue / Feature - Issue FolioReader version - 0.5.3

I am constantly getting this error while importing version 0.5.3,

AGPBI: {"kind":"error","text":"error: resource android:attr/dialogCornerRadius not found.","sources":[{"file":"/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8b6406a758a232d2d1121a807ad5ecea/res/values-v28/values-v28.xml","position":{"startLine":8,"startColumn":4,"startOffset":447,"endLine":11,"endColumn":12,"endOffset":684}}],"original":"","tool":"AAPT"} AGPBI: {"kind":"error","text":"error: resource android:attr/dialogCornerRadius not found.","sources":[{"file":"/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/app/build/intermediates/incremental/mergeDevDebugResources/merged.dir/values-v28/values-v28.xml","position":{"startLine":10}}],"original":"","tool":"AAPT"} AGPBI: {"kind":"error","text":"error: resource android:attr/fontVariationSettings not found.","sources":[{"file":"/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/.gradle/caches/transforms-1/files-1.1/sdp-android-1.0.5.aar/47fea7a38829f9a9fa26aad0a460612d/res/values/values.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endColumn":42,"endOffset":93}}],"original":"","tool":"AAPT"} AGPBI: {"kind":"error","text":"error: resource android:attr/ttcIndex not found.","sources":[{"file":"/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/.gradle/caches/transforms-1/files-1.1/sdp-android-1.0.5.aar/47fea7a38829f9a9fa26aad0a460612d/res/values/values.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endColumn":42,"endOffset":93}}],"original":"","tool":"AAPT"}

hrishikesh-kadam commented 5 years ago

Please read this comment on another issue - https://github.com/FolioReader/FolioReader-Android/issues/332#issuecomment-450876714

HardikChauhanSA commented 5 years ago

Is there any way to use it with minsdk 19? and without androidx support?

Please let me know if i can use any other version of the librayr.

hrishikesh-kadam commented 5 years ago

version 0.5.1 is the last version which supports API 19 and is not AndroidX Project.

hrishikesh-kadam commented 5 years ago

Also read this comment - https://github.com/FolioReader/FolioReader-Android/issues/331#issuecomment-451126699

HardikChauhanSA commented 5 years ago

I have added the version 0.5.1

But still getting below errors, `error: resource android:attr/fontVariationSettings not found. Message{kind=ERROR, text=error: resource android:attr/fontVariationSettings not found., sources=[/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/.gradle/caches/transforms-1/files-1.1/sdp-android-1.0.5.aar/47fea7a38829f9a9fa26aad0a460612d/res/values/values.xml], original message=, tool name=Optional.of(AAPT)}

error: resource android:attr/ttcIndex not found. Message{kind=ERROR, text=error: resource android:attr/ttcIndex not found., sources=[/Users/hardikchauhan/Documents/Projects/Kotlin/GTHUB/gt-hub-app-android/.gradle/caches/transforms-1/files-1.1/sdp-android-1.0.5.aar/47fea7a38829f9a9fa26aad0a460612d/res/values/values.xml], original message=, tool name=Optional.of(AAPT)} `

HardikChauhanSA commented 5 years ago

After Adding v0.5.1 I am still getting the error as below,

screenshot 2019-01-07 at 7 24 19 pm

My project configuration are as below,

androidCompileSdkVersion = 27 androidBuildToolsVersion = '28.0.0' androidMinSdkVersion = 19 androidTargetSdkVersion = 28 supportLibraryVersion = '27.1.1'

HardikChauhanSA commented 5 years ago

Is there any older version which can be used with 27 support libs?