Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all 28480 articles
Browse latest View live

Is there a way to force the Android calendar for date selection on iOS as well for the React Native DateTimePicker component?

$
0
0

I'm using the React Native DateTimePicker (https://github.com/react-native-community/datetimepicker) component in an Expo RN project.

Using the component, this is the default date picker for iOS:

enter image description here

And here's the default date picker for Android:

enter image description here

Is there any way to force iOS devices to load the Android calendar as well, as opposed to the rotating picker that's used by default for iOS? Thank you.


Failed to launch emulator. Reason: Emulator exited before boot en React Native when react-native run-android

$
0
0

I am installing React Native according to this website https://medium.com/@leonardobrunolima/react-native-tips-setting-up-your-development-environment-for-windows-d326635604ea, it's very useful until I run the command react-native run-android, this is the error I receive

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 864 file(s) to forward-jetify. Using 8 workers...info Starting JS server...info Launching emulator...error Failed to launch emulator. Reason: Emulator exited before boot..

Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings24 actionable tasks: 4 executed, 20 up-to-date

FAILURE: Build failed with an exception.

  • What went wrong:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.

Could not read path 'C:\JesusApp\android\app\build\intermediates\transforms\mergeJniLibs\debug\0\lib\x86_64'.

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.

Could not read path 'C:\JesusApp\android\app\build\intermediates\transforms\mergeJniLibs\debug\0\lib\x86_64'.

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

at checkExecSyncError (child_process.js:629:11)at execFileSync (child_process.js:647:13)at runOnAllDevices (C:\JesusApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)at process._tickCallback (internal/process/next_tick.js:68:7)

My node version is 10, and I am working on Windows, please help, thank you.

How to make a Soft Ripple Animation on React Native?

React Native metro bundle server doesn't work after I build the android apk (Android Studio)

$
0
0

I am quite new with RN development so I am not aware of the terminologies. I am working on RN project in IntelliJ and I would run "react-native run-android" and my app will load up on the emulator and I can make changes and see them hot reloaded on the emulator. Once I am satisfied with the changes I bundle the app. Next I build/generate the apk for play store with Android Studio.

This is where it all goes south. After a successful apk build in Android Studio, I can't return to IntelliJ and start working like before building the apk.

In IntelliJ the hot loading doesn't work and it seems like "react-native run-android" is loading some pre-built apk. The metro bundle server doesnt push the app to the emulator.

The ugly fix is to delete the android folder and "expo eject" again then everything works fine but its quite ugly and I have to do everything all over again once I am ready to build the apk.

Is there any way I can streamline the process of developing RN app and not having to deal with this issue and I can switch between developing the app(IntelliJ) and generating the apk(Android Studio) more smoothly.

Exceptions with ReactNative and AndroidX

$
0
0

I am trying to integrate React-Native into my existing Android project and I see the exception below. I have followed all the steps written here.

There is nothing I can find online after hours of searching.

Here is the full exception log:

 java.lang.ClassCastException: com.example.myapplication.ReactActivity cannot be cast to androidx.fragment.app.FragmentActivity    at com.facebook.react.modules.dialog.DialogModule.getFragmentManagerHelper(DialogModule.java:245)    at com.facebook.react.modules.dialog.DialogModule.onHostResume(DialogModule.java:177)    at com.facebook.react.bridge.ReactContext$1.run(ReactContext.java:174)    at android.os.Handler.handleCallback(Handler.java:873)    at android.os.Handler.dispatchMessage(Handler.java:99)    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)    at android.os.Looper.loop(Looper.java:193)    at android.app.ActivityThread.main(ActivityThread.java:6669)    at java.lang.reflect.Method.invoke(Native Method)    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Here is the screenshot

enter image description here

I just have an native activity that has a button that redirects me to my ReactActivity which is exactly the same as mentioned in the integration guide above. Any help is appreciated!

MainActivity Code:

import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Build;import android.os.Bundle;import android.provider.Settings;import android.view.View;import android.widget.Button;import android.widget.Toast;public class MainActivity extends Activity {private static final int OVERLAY_PERMISSION_REQ_CODE = 1212;@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_main);    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {        if (!Settings.canDrawOverlays(this)) {            Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,                    Uri.parse("package:"+ getPackageName()));            startActivityForResult(intent, OVERLAY_PERMISSION_REQ_CODE);        }    }    Button button = findViewById(R.id.button);    button.setOnClickListener(new View.OnClickListener() {        @Override        public void onClick(View view) {            goToReactActivity();        }    });}private void goToReactActivity() {    Intent intent = new Intent(this, ReactActivity.class);    startActivity(intent);}@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) {    if (requestCode == OVERLAY_PERMISSION_REQ_CODE) {        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {            if (!Settings.canDrawOverlays(this)) {                Toast.makeText(this,"You cannot open the React Native app as you have denied the permission",                        Toast.LENGTH_SHORT).show();            }        }    }}}

ReactActivity Code:

import android.app.Activity;import android.os.Bundle;import android.view.KeyEvent;import com.facebook.react.ReactInstanceManager;import com.facebook.react.ReactRootView;import com.facebook.react.common.LifecycleState;import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;import com.facebook.react.shell.MainReactPackage;import com.facebook.soloader.SoLoader;public class ReactActivity extends Activity implements DefaultHardwareBackBtnHandler {private ReactRootView mReactRootView;private ReactInstanceManager mReactInstanceManager;@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    mReactRootView = new ReactRootView(this);    SoLoader.init(this, false);    mReactInstanceManager = ReactInstanceManager.builder()            .setApplication(getApplication())            .setCurrentActivity(this)            .setBundleAssetName("index.android.bundle")            .setJSMainModulePath("index.android")            .addPackage(new MainReactPackage())            .setUseDeveloperSupport(BuildConfig.DEBUG)            .setInitialLifecycleState(LifecycleState.RESUMED)            .build();    // The string here (e.g. "MyReactNativeApp") has to match    // the string in AppRegistry.registerComponent() in index.js    mReactRootView.startReactApplication(mReactInstanceManager, "MyApplication", null);    setContentView(mReactRootView);}@Overridepublic void invokeDefaultOnBackPressed() {    super.onBackPressed();}@Overrideprotected void onPause() {    super.onPause();    if (mReactInstanceManager != null) {        mReactInstanceManager.onHostPause(this);    }}@Overrideprotected void onResume() {    super.onResume();    if (mReactInstanceManager != null) {        mReactInstanceManager.onHostResume(this, this);    }}@Overrideprotected void onDestroy() {    super.onDestroy();    if (mReactInstanceManager != null) {        mReactInstanceManager.onHostDestroy(this);    }}@Overridepublic void onBackPressed() {    if (mReactInstanceManager != null) {        mReactInstanceManager.onBackPressed();    } else {        super.onBackPressed();    }}@Overridepublic boolean onKeyUp(int keyCode, KeyEvent event) {    if (keyCode == KeyEvent.KEYCODE_MENU && mReactInstanceManager != null) {        mReactInstanceManager.showDevOptionsDialog();        return true;    }    return super.onKeyUp(keyCode, event);}}

AndroidManifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"      xmlns:tools="http://schemas.android.com/tools"      package="com.example.myapplication"><uses-permission android:name="android.permission.INTERNET"/><uses-permission android:name="android.permission.ACTION_MANAGE_OVERLAY_PERMISSION" /><uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /><application android:allowBackup="true"             android:label="@string/app_name"             android:icon="@mipmap/ic_launcher"             android:roundIcon="@mipmap/ic_launcher_round"             android:usesCleartextTraffic="true"             android:supportsRtl="true"             android:appComponentFactory="androidx"             tools:replace="android:appComponentFactory"             android:theme="@style/AppTheme"><activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/><activity android:name=".MainActivity"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity><activity            android:name=".ReactActivity"            android:label="@string/app_name"            android:theme="@style/Theme.AppCompat.Light.NoActionBar"></activity></application>

Is there a way to listen android notifications and respond using the buttons and text boxes in the notification using reactnative?

$
0
0

I tried using the "react-native-android-notification-listener" npm. But I'm only able to read the title, app name, and text. I need to have access to the buttons and text boxes in the notification.

How make a react-native package using java?

$
0
0

I'm trying to reuse some code from android app programmed by java. And i want to reuse in a React-Native app. How can i create a interface or a funcionality in java and export to a react-native package?

Youtube Video's not playing in android(react-native)

$
0
0

I am developing a sample application which shows Youtube videos. It's working perfect on iOS, but on Android, instead of showing a play button, it shows a black screen with a spinner.

I am using the react-native-youtube GitHub project to add the YouTube component.

<YouTube     apiKey={'xxxxxxxxxxxx'}     videoId={xxxxxxxxx}       play={true}                  fullscreen={false}            loop={false}      onReady={e => this.setState({ isReady: true })}     onChangeState={e => this.setState({ status: e.state })}     onChangeQuality={e => this.setState({ quality: e.quality })}     onError={e => this.setState({ error: e.error })}     style={[styles.articleImage, allTabFilterSelected ? {}     styles.articleImageFilterTab]} />

On iOS, my application behaves fine with a play button that works. But on Android it's showing an empty black screen like this:

enter image description here

Please suggest some solution! Thanks in advance.


disable auto lunching emulator on react-native run-android

$
0
0

I have been using rn for a year and for lunching my app I have to lunch emulator manually and run this command: react-native run-android

I just created a new project today with react-native init myProject to test RN-push-notification but it lunch emulator automatically (it's new in RN I thing) and it doesn't suit me.. so I have to disable this auto lunching emulator (if possible).

^^^^that is what I want

ps. I don't know if there is a relation with the problem or just with emulator but if I let the default emulator everything is going well but my application is stoped without any error

Ejected expo app with java reserved word as package name

$
0
0

I have an issue and I know someone already solved this.

I had my app in the expo managed workflow for a while and now we are getting more users and I need a more powerfull local DB. So i ejected my app. Problem is, for noobiness of mine my android packageName is "com.[...].new"

I have made all the adjustments necessary to build my project, but now android studio is telling it cant use this package name as "new" is a reserved word in Java. Curiously expo managed to build with this package name, so i know it is possible.

Can anyone point me to the right direction?

Generating Android Studio launcher icon from command line only

$
0
0

This is a pretty out there question but I thought I would go for it and see if anyone has some advice!

We have been building an automated app building system from the command line (in macOS). Basically it asks a couple questions and then generates the app for you. One of the things we want it to do, if possible, is generate the Android's app icon without having to open the project in Android Studio, simply by taking a .png file and plugging it in.

Is there a tool that might help to accomplish this in command line? Or what might those commands look like?

Does anyone grpc with react native in 2020? [closed]

$
0
0

Does anyone use grpc with react native? I found some solutions with limitations. It is possible to make full grpc to be used on android an iOS with streaming and all features but as react native module?

stuck at starting intent main activity react native app

$
0
0

Trying to run the react native app on mobile device connected using react-native run-android. The app build was successful but the app crash on opening and on the command prompt it stucks on Starting: Intent { cpm=com.project.projectname/.MainActivity }

The App installed on the mobile device but always keep stopping. Can someone help me how to debug this and i cant see where the error messages at.

this the whole command prompt output

C:\xampp\htdocs\projectname>react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 1109 file(s) to forward-jetify. Using 4 workers...info Starting JS server...'C:\Users\user' is not recognized as an internal or external command,operable program or batch file.info Launching emulator...error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.info Installing the app...Parallel execution with configuration on demand is an incubating feature.> Configure project :appWARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.htmlCould not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)> Configure project :react-native-firebasereact-native-firebase: using React Native prebuilt binary from C:\xampp\htdocs\projectname\node_modules\react-native\android> Task :app:processDebugGoogleServicesParsing json file: C:\xampp\htdocs\projectname\android\app\google-services.json> Task :app:processDebugManifestC:\xampp\htdocs\projectname\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:        activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present> Task :react-native-camera:compileGeneralDebugJavaWithJavac> Task :react-native-firebase:compileDebugJavaWithJavac> Task :app:transformClassesWithFirebasePerformancePluginForDebugjava.lang.ClassNotFoundException: android.graphics.fonts.Fontjava.lang.ClassNotFoundException: android.graphics.fonts.Fontjava.lang.ClassNotFoundException: android.graphics.fonts.Fontjava.lang.ClassNotFoundException: android.graphics.fonts.Fontjava.lang.ClassNotFoundException: com.google.firebase.dynamiclinks.DynamicLink$Builder> Task :app:installDebug09:26:46 V/ddms: execute: running am get-config09:26:46 V/ddms: execute 'am get-config' on 'R58M55ASZDM' : EOF hit. Read: -109:26:46 V/ddms: execute: returningInstalling APK 'app-debug.apk' on 'SM-A105G - 9' for app:debug09:26:46 D/app-debug.apk: Uploading app-debug.apk onto device 'R58M55ASZDM'09:26:46 D/Device: Uploading file onto device 'R58M55ASZDM'09:26:47 D/ddms: Reading file permision of C:\xampp\htdocs\projectname\android\app\build\outputs\apk\debug\app-debug.apk as: rwx------09:26:47 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"09:27:16 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'R58M55ASZDM' : EOF hit. Read: -109:27:16 V/ddms: execute: returning09:27:16 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"09:27:16 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'R58M55ASZDM' : EOF hit. Read: -109:27:16 V/ddms: execute: returningInstalled on 1 device.Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD SUCCESSFUL in 20m 38s62 actionable tasks: 59 executed, 3 up-to-dateinfo Connecting to the development server...info Starting the app...Starting: Intent { cmp=com.project.projectname/.MainActivity }

Can I Used expo facebook ads npm library in react native bare project

$
0
0

I already tried to install with react native unimodules, but react-native unimodules can not properly install in my react native project (0.62) any other way to used Facebook ads in react-native project?

Task :react-native-webview:compileDebugJavaWithJavac FAILED

$
0
0

I keep getting this error, when I try running my React Native application after installing the react-native.webview package. Please what could I be doing wrong.

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 1135 file(s) to forward-jetify. Using 8 workers...info Starting JS server...info Installing the app...Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details> Task :react-native-webview:compileDebugJavaWithJavac> Task :react-native-webview:compileDebugJavaWithJavac FAILEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings79 actionable tasks: 14 executed, 65 up-to-dateC:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewModule.java:276: error: cannot find symbol    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {                                                    ^  symbol:   variable Q  location: class VERSION_CODESNote: C:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: C:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 errorFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-webview:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1m 37serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081C:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewModule.java:276: error: cannot find symbol    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {                                                    ^  symbol:   variable Q  location: class VERSION_CODESNote: C:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: C:\Projects\React-Native\FUNAI\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 errorFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-webview:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1m 37s    at makeError (C:\Projects\React-Native\FUNAI\node_modules\execa\index.js:174:9)    at Promise.all.then.arr (C:\Projects\React-Native\FUNAI\node_modules\execa\index.js:278:16)    at process._tickCallback (internal/process/next_tick.js:68:7)

how to use print attribute react-native-share

$
0
0

I am using the react-native-share extension for the share and print Pdf document. I am trying to add The 'Print' attribute but it is not working or I couldn't get it rightI follow this document https://react-native-community.github.io/react-native-share/docs/share-open#activitytype

and i used the example here https://react-native-community.github.io/react-native-share/docs/share-open#activityitemsources-ios-onlyAccording to this document, I created an object like

const url = this.props.navigation.state.params.document.url           {            item:{            print : url            }          },

enter image description here

"react-native run-android" gives an error - Execution failed for task ':app:mergeDebugResources'. I can run the simulator but the app does not launch

$
0
0

I have been searching for solutions for this and I cant seem to find any. Keep in mind, I am new to this and Just want to get my first app started and get more experience with mobile app dev.I have no clue or idea on how to solve this, tried to delete build directory and build again, tried gradlew clean, everything on every other forum. Please helpHere is the whole error after i type : react-native run-android

C:\Windows\System32\tester>react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using"--no-jetifier" flag. Jetifier found 967 file(s) to forward-jetify. Using 8 workers... info Starting JS server... info Launching emulator... info Successfully launched emulator. info Installing the app... Downloadinghttps://services.gradle.org/distributions/gradle-6.5-bin.zip .........10%..........20%..........30%..........40%.........50%..........60%..........70%..........80%.........90%..........100%

Welcome to Gradle 6.5!

Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples

For more details see https://docs.gradle.org/6.5/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :app:mergeDebugResources FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. Seehttps://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings 17 actionable tasks: 17 executed

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:mergeDebugResources'.

    Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 40s

error Failed to install the app. Make sure you have the Android development environment set up:https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:mergeDebugResources'.

    Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource compilation failed AAPT: C:\Windows\System32\tester\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 40s

at makeError (C:\Windows\System32\tester\node_modules\execa\index.js:174:9)at C:\Windows\System32\tester\node_modules\execa\index.js:278:16at processTicksAndRejections (internal/process/task_queues.js:97:5)at async runOnAllDevices (C:\Windows\System32\tester\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)at async Command.handleAction (C:\Windows\System32\tester\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)

Decompile React Native index.android.bundle

$
0
0

I am using React Native and integrated library react-native-obfuscating-transformerto obfuscate my code. Now after decompiling my APK, I believe my whole js code is under assets/index.android.bundle.

How can I debundle it and see my code whether obfuscation worked or not.

RNfirebase core module was not found android

$
0
0

I am trying to implement Firebase in android app (not react-native-firebase), when I am trying to run the app it gives me the error

RNFirebase core module was not found natively on Android, ensure you have correctly added the RNFirebase and Firebase gradle dependencies to your `android/app/build.gradle

I didn't install any dependencies for react-native-firebase I want to implement core firebase not the react-native-firebase plugin.

in Android studio on the left sidebarthere are some packages are listed which belongs to react-native-firebase, please find the attached screenshot

enter image description here

These dependencies are showing in the module settings window.

Thanks in advance

react native android get error when migrate form windows to mac with signed app

$
0
0

I was working on windows with react native and migrate to mac os. My android app is signed on windows and it works.I cloned the the projet on mac and i try to run the app in android device .

I got this error :

Cause: tried to access method sun.security.util.ECUtil.getECParameters(Ljava/security/Provider;)Ljava/security/AlgorithmParameters; from class sun.security.ec.ECKeyPairGenerator

Viewing all 28480 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>