I have a android App which uses Webkit for rendering the Web Pages. I have Editor.html File (which is written in html, javascript and css). It uses the android webkit interface to communicate between JavaScript and the Native Code.
Now I want to use React-Native in my app for Communicating between Native code and Js code.
To integrate React-Native in my app, I am using this blog: Medium Blog for Integrating React Native
As I am adding below the code in the my build.gradle.
Code:
maven {
url "<PATH TO YOUR ROOT DIRECTORY>/AwesomeApp/node_modules/react-native/android"
}
I am getting the following error.
Error:
No resource found that matches the given name (at 'layout_height' with value '@dimen/abc_action_bar_progress_bar_size').
Message{kind=ERROR, text=No resource found that matches the given name (at 'layout_height' with value
'@dimen/abc_action_bar_progress_bar_size')., sources=[/Users/././android/app/src/main/res/layout/activity_add__audio.xml:18:32-71], original message=, tool name=Optional.of(AAPT)}
Due to this error, some values specified in the dimension file are not accessible to the layout file.
android/build.gradle:
buildscript {
repositories {
jcenter()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com'
}
maven {
url "/Users/../node_modules/react-native/android"
}
jcenter()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven { url "https://jitpack.io" }
mavenCentral()
}
}
targetSdkVersion: 26
Can anyone help me with this?
the dimension resource it cannot find: dimen/abc_action_bar_progress_bar_size
hints for lacking a dependency ...because that's where it comes from:
// https://mvnrepository.com/artifact/com.android.support/appcompat-v7
implementation "com.android.support:appcompat-v7:28.0.0"
or this one:
// https://mvnrepository.com/artifact/androidx.appcompat/appcompat
implementation "androidx.appcompat:appcompat:1.0.2"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.