Open Yangeok opened 4 years ago
When i executed command react-native run-android at the first time. The following error occurred:
react-native run-android
Unsupported class file major version 57 react native
Then i attempted typing command /android/gradlew/ build. The following error occurred:
/android/gradlew/ build
* What went wrong: Execution failed for task ':react-native-document-scanner:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed /Users/wookee/.gradle/caches/transforms-2/files-2.1/511bd9102a1a416eba49cca161a4e7e7/appcompat-1.0.2/res/values-v26/values-v26.xml:5:5-8:13: AAPT: er ror: resource android:attr/colorError not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/511bd9102a1a416eba49cca161a4e7e7/appcompat-1.0.2/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/511bd9102a1a416eba49cca161a4e7e7/appcompat-1.0.2/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/511bd9102a1a416eba49cca161a4e7e7/appcompat-1.0.2/res/values-v28/values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/511bd9102a1a416eba49cca161a4e7e7/appcompat-1.0.2/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startX not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startY not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endX not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endY not found. /Users/wookee/.gradle/caches/transforms-2/files-2.1/6c71160565e14a9c0b6b91317c0864ba/core-1.0.1/res/values/values.xml:126:5-132:25: AAPT: error: resource android:attr/offset not found.
How can i resolve this problem? Please let me know why did occur this problem.
@Yangeok did you found a solution ?
Environment
Behavior
When i executed command
react-native run-android
at the first time. The following error occurred:Then i attempted typing command
/android/gradlew/ build
. The following error occurred:How can i resolve this problem? Please let me know why did occur this problem.