AAPT: error: resource string not found react native - react-native

I am trying to build a react native app with facebook login.
As facebook suggests I have created two resources string string/facebook_app_id and string/fb_login_protocol_scheme and include it in Manifest file.
But when I try to build app I get these errors
AAPT: error: resource string/facebook_app_id (aka package.name:string/facebook_app_id) not found.
AAPT: error: resource string/fb_login_protocol_scheme (aka package.name:string/fb_login_protocol_scheme) not found.

Related

React native - Error with Google mobile ads

I am build a mobile app with react native
"react-native": "^0.71.1",
"react-native-google-mobile-ads": "^9.1.1"
Without google-mobile-ads, app is working okay. But with this module, I get this error
023-02-07 23:05:06.067 xcodebuild[92292:1835009] [MT] IDEFileReferenceDebug: [Load] <IDESwiftPackageCore.IDESwiftPackageSpecialFolderFileReference, 0x7fa23ae8f960: name:Docs.docc path:group:Docs.docc> Failed to load container at path: /Users/sangnlee/Library/Developer/Xcode/DerivedData/aaa-csqwegbowuhmbrehpztorwqemvkb/SourcePackages/checkouts/swift-protobuf/Sources/protoc-gen-swift/Docs.docc, Error: Error Domain=com.apple.dt.IDEContainerErrorDomain Code=6 "Cannot open "Docs.docc" as a "Swift Package Folder" because it is already open as a "Folder"." UserInfo={NSLocalizedDescription=Cannot open "Docs.docc" as a "Swift Package Folder" because it is already open as a "Folder".}
** BUILD FAILED **
The following build commands failed:
Ld /Users/aaa/Library/Developer/Xcode/DerivedData/aaa-csqwegbowuhmbrehpztorwqemvkb/Build/Products/Debug-iphonesimulator/aaa.app/aaa normal (in target 'aaa' from project 'aaa')
(1 failure)
Anyone knows how to solve this?

How to cache data on react-native-webview?

I want to create a simple webview app that shows the data of a website in an app. Is there a way to cache data in React Native Webview so that if there is no internet it shows cached screens.
I have tried react-native-offline-cache-webview but it does not work anymore. The app does not build and it shows the following error.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/<user_name>/Projects/<app_name>/node_modules/react-native-offline-cache-webview/android/build.gradle' line: 43
* What went wrong:
A problem occurred evaluating project ':react-native-offline-cache-webview'.
> Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Is there any other way to cache web pages in webview ?

Error while Generating pdf and downloading from React native components

I have used react-native-html-to-pdf package for downloading React native page in pdf format. I have also added android:requestLegacyExternalStorage="true" in AndroidManifest.xml file. But I'am still getting an error message as:
Possible Unhandled Promise Rejection (id: 0):
Error: RNHTMLtoPDF error: Could not create folder structure.

Build issue in android

BaseDialogActivity
error: cannot access Player
class file for com.google.android.exoplayer2.Player not found
BaseDialogActivity
error: cannot access Player class file for
com.google.android.exoplayer2.Player not found

google-translate-api giving an error in react-native

while importing google-translate-api on my React Native app, I'm getting an error "couldn't resolve the module querystring".
Please find the attached screenshot.
Error
Error:
Unable to resolve module "querystring" from "...". Module "querystring" does not exist in the Haste module map.