Comments (22)
@OmarThinks - App is running on my device.
- npm start
- I used to run button in Android Studio.
- The app is successfully running on the device along with the metro bundler server.
from react-native.
@OmarThinks - Thanks for your help.
from react-native.
Added this to my root build.gradle file and it fixed my issue
gradle.startParameter.excludedTaskNames.addAll(
gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
)
from react-native.
I replicated this issue by creating the react-native project.
Please find the below repo.
https://github.com/gopikrishnacse55/UIExample.git
from react-native.
You're welcome. 😁
I need to clarify.
The npm start
runs the metro in the background, so that you can run the React Native app.
The green arrow does the following:
- Install the app on the emulator if it wasn't installed.
- After it makes sure that the app has been installed, it opens the application in the emulator (but not metro)
So, you need the app to be open in the emulator, while npm start
is running in background. You need them both.
And do not close the issue yet. The issue is still hasn't been solved.
from react-native.
Try the following:
In android studio,
-
Open the project folder
Menu => File => Open => (Select the/android
folder in your React native project)
(Be careful, open the/android
folder, not the project folder)
(Assuming that you are using a React Native CLI build and not an Expo build) -
Clean and rebuild
Menu => Build => Clean Project
Menu => Build =>Rebuild Project -
Install app
Now, press that green run button to install the application
-
Run application
npm start
open the emulator
Open the application
Summary: on windows device, do not run npx react-native run-android
directly, it may not work sometimes, especially in some old React Native versions.
That may be a completely different problem.
If the error still persists, try these steps on a brand new React Native project, not your main project.
A new project without any dependencies. To know what's up with a pure isolated React Native latest version case.
If the app works, then it's a dependency error or old React Native error, but not the isolated pure latest version of React Native.
from react-native.
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - 0.73.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
Do we have solution for this ?
from react-native.
Same issue, it's happened on my side.
I tried on both 0.74.1 and 0.73.8, but the same issue happened.
Here is my env:
System:
OS: Windows 11 10.0.22000
Binaries:
Node:
version: 18.3.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.21
path: C:\Program Files\nodejs\yarn.CMD
npm:
version: 8.11.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-233.14808.21.2331.11709847
Visual Studio: Not Found
Languages:
Java: 11.0.23
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.8
wanted: 0.73.8
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
from react-native.
Related to gradle/gradle#21325
Are you building from Android Studio or from the CLI?
Can you try both and report from which one can you build?
from react-native.
Also experience this. sometimes it show, sometimes its not. I am not sure why this occurs. I clean and rebuild and invalidate cache still the same.
from react-native.
I am facing this issue When I trying to rebuild the project from Android Studio.
I am getting the below error when trying to run the app on the device: react-native run-android.
build failed in gradle port:8081.
from react-native.
Hello! 👋
I would also like to report that this issue happened to me today too.
Today I ran this command: npx react-native init abc
I did not install any other dependencies, just the pure React Native project.
I am using a windows machine.
I am using the latest version of Android Studio to build the project.
Here are the steps to reproduce the problem (on a windows machine):
- Run this command:
npx react-native init abc
- Open the project on Android Studio
- Rebuild the project with Android Studio:
Menu => Build => Clean Project
Menu => Build => Rebuild Project
And this issue appeared to me.
Thanks a lot! 🙏
from react-native.
npx react-native init abc
npx react-native init abcd --version="0.73"
npx react-native init abcde --version="0.72"
All these commands will create the same error when following the same 3 steps in my previous comment. ♻️
After testing versions of React Native, the error also appeared in the old React Native I am working on v0.72.1.
😅
from react-native.
Added this to my root build.gradle file and it fixed my issue
gradle.startParameter.excludedTaskNames.addAll( gradle.startParameter.taskNames.findAll { it.contains("testClasses") } )
It worked perfectly. Thanks a lot @markneh!
I've tested it across several React Native versions.
Just to clarify. Where Should this code be. It should be in root build gradle file like this:
gradle.startParameter.excludedTaskNames.addAll(
gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
)
buildscript {
// code
}
from react-native.
I added the below code in build.gradle and rebuilt the project in Android Studio. The issue is fixed.
gradle.startParameter.excludedTaskNames.addAll(
gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
)
Trying to run the command: react-native run-android on Android device.Getting the below error.
info Installing the app...
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
error Failed to install the app. Command failed with Unknown system error -8: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
spawn Unknown system error -8.
info Run CLI with --verbose flag for more details.
from react-native.
@OmarThinks - Thanks for your reply.
I followed your steps and app is installed on my device.
Getting the below error.
Questions Tags Users Companies LABS Jobs NEW Discussions COLLECTIVES Communities for your favorite technologies. Explore all Collectives TEAMS Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release
from react-native.
Maybe you are not running npm start
in the background.
But the application has been installed successfully, that's progress. 😁🎉💪💯
from react-native.
Congrats, bro! 🎉🎂
You made progress. 🫡 💪
Happy, coding! 💻😁
from react-native.
Hello, @cortinico ! 👋
I would like to say that we would really appreciate it if someone from the React Native teams solved this issue, we would be so grateful.
Issue description:
On a windows machine, for a new pure isolated (the template from npx react-natine init abc
, without installing any other dependencies) latest version project of React Native.
On a windows machine, using Android Studio, when we run:
Menu => Build => Clean Project
Menu => Build =>Rebuild Project
This issue appears:
Unable to make progress running work. There are items queued for execution but none of them can be started
The issue will not be solved, unless we add this code to the root build gradle file:
gradle.startParameter.excludedTaskNames.addAll(
gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
)
buildscript {
// code
}
Thanks a lot for you, and for the React Native team for your hard work and consistent effort! 🙏
from react-native.
I would like to say that we would really appreciate it if someone from the React Native teams solved this issue, we would be so grateful.
Thanks for flagging it. Unfortunately, I don't have capacity at the moment to work on this.
I'll be happy to receive and review a PR for a fix for this.
Needless to say that gradle.startParameter.excludedTaskNames.addAll(
is a workaround and we should fix the root cause
from react-native.
Related Issues (20)
- TextInput (IOS) : maxLength & multiline true = onChangeText multiple call HOT 4
- 2 files found with path 'lib/arm64-v8a/libopencv_java4.so' from inputs: - /Users/wegile-1003/.gradle/caches/transforms-3/8ec77b58992a0a620e60c240eaed7c29/transformed/jetified-rppg_core-0.2.0/jni/arm64-v8a/libopencv_java4.so - /Users/wegile-1003/.gradle/caches/transforms-3/a576edfdc1ae89d711e78c8d27ec535b/transformed/jetified-opencv-android-4.1.2/jni/arm64-v8a/libopencv_java4.so If you are using jniLibs and CMake IMPORTED targets, see HOT 4
- No visible error is shown on iOS Bridgeless when there is an error before `AppRegistry.registerComponent` HOT 1
- yarn ios error ! error Could not find scheme greenhouse. Please make sure the schema you want to run exists. HOT 3
- App Crashes When Hermes is Disabled on Some Android 10 Devices `couldn't find DSO to load: libhermes.so SoSource` HOT 4
- React Query isStale is not working after upgrading react-native to 0.74 HOT 1
- In Android touchMove is cancelled when intercepted by native gesture from child HOT 3
- Zoom in & reset shortcuts are broken on experimental debugger HOT 3
- Library not loaded: '@rpath/FBLPromises.framework/FBLPromises' Referenced from HOT 5
- Socket Rocket Upgrade to 0.7.0 in react native version 0.73 HOT 4
- Image .gif frame timing off-by-one error in iOS HOT 2
- Pressable gets stuck under the new architecture HOT 2
- How to run react native custom library inside react native project without publishing to npm? Local setup steps are not working. HOT 3
- NSInvalidArgumentException __76-[RCTModalHostViewManager presentModalHostView:withViewController:animated:]_block_invoke.38 Application tried to present modally a view controller <RCTModalHostViewController: 0x7fcf53855110> that is already being presented by <UIViewController: 0x7fcf4791 HOT 7
- UI problem with iOS floating keyboard in iPad - 0.73.7 HOT 4
- React-Codegen Error when build iOS HOT 3
- [codegen] inconsistent use of `toSafeCppString` in `generateEnum` (GenerateModuleH.js) HOT 1
- Implement requestIdleCallback and cancelIdleCallback on the new architecture HOT 6
- Some touchable components are not working (Native Android devices only) HOT 2
- [iOS] Data race as a result of concurrent access to NativeToJsBridge::m_batchHadNativeModuleOrTurboModuleCalls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.