While creating a react-native module for Integrating some native android code and AAR files giving this error and app crashes.
Used this in app-level build.gradle
packagingOptions {
pickFirst '**/*.so'
}
and added all *.so files in jinLibs and write this in build.Gradle(one which is in my module "react-native-test-lib")
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jnilibs']
}
}
The app crashes with the error "couldn't find libaw_video.so"
Related
I am attempting to use the recently released firebase emulator suite. specifically the authentication emulator.
I have the emulator installed and have created an test user in the auth emulator. as follows:
Within my code I have:
if (firebase.apps.length === 0) {
console.log("setup.js: initializing firebase....")
firebase.initializeApp(firebaseConfig);
firebase.auth().useEmulator('http://localhost:9099/');
} else {
firebase.app(); // if already initialized, use that one
}
to utilized the emulator for authentication. alas I get the following network error:
Has anyone had success utilizing the firebase emulator suite with react native?
i am done coding my App and i will be publishing soon. Right now, when there is an error in the app, it stops the whole app and shows StackTrace errors. please how can i stop this.
i saw a solution relating to this on the nativescript website
this is what i have tried below
import * as traceModule from "tns-core-modules/trace";
const errorHandler = {
handlerError(err) {
}
};
traceModule.setErrorHandler(errorHandler);
NB: i use nativescript core (javascript)
saw this solution on stackoverflow
When an android application is built in release mode;
tns build android --release --key-store-path [path] --key-store-password [pw] --key-store-alias [alias] --key-store-alias-pw [pw]
The app will automatically disable the stack trace screen on Android. By default the tns build android will be building debug mode applications.
I have an electron app, the app is working when I am running:
npm run electron-dev
I am creating a build folder using react-scripts:
yarn react-scripts build
Than I am trying to build it using electron builder with the command:
yarn electron-builder -c.extraMetadata.main=build/electron.js
This is working well and I am getting a dist and a build folders with the compiled app and a build.
But when I am clicking the app I am getting:
A JavaScript error occurred in the main process
Uncaught Exception:
undefined: undefined
Compilation success messages
When running the app via electron-dev (on the build folder or on the public folder) I am getting no errors, but I am getting 3 warning messages, 2 from firebase - "When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use.", "Warning: This is a browser-targeted Firebase bundle but it appears it is being run in a Node environment." and 1 about security "Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled.".
TD;DR: How can I understand where the error is coming from and why, if the error shows only undefined: undefined?
Maybe through try and catch but than how can I display it on the error I am getting?
I'm working on Mac OSX (But it does not looks like this is the problem), I am using opencv4nodejs which takes a long time to compile, also I am using some json files to store app data using electron-json-storage.
When i try to install my react native app on device it shows following error :-
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /home/user28/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/227c237efe9029fa4a76003d6795431d/jars/classes.jar
And i could not understand how to solve it. My app runs correctly but after installing react-native-video dependency it shows following error.Help me to get out from this.
Add the following to your app/build.gradle file:
android {
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
}
}
I'm creating a module and adding it to an application
application structure:
module structure:
access code module:
var module = require('ar.com.module');
$.label.text = module.example();
error:
steps to run application:
include module in app
clean and build app
run to device
Titanium SDK version: 3.2.0.GA
NDK Android: r8
Android plataform (module): android-10
solution to this problem?
Solution:
to run the module in a device must be configured deploy-type = "test" in tiapp.xml and install gperf add to Path.