代码不能在我的设备上运行,请帮帮我...!
G:\React\blawblaW>react-native run-android
info JS server already running.
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
任务:应用程序:编译调试失败
G:\React\blawblaW\android\app\src\main\java\com\blawblaw\MainActivity.java:23
在最近更新的facebook中,我在同步android项目中的gradle文件(react本机)时遇到了这个问题。
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. E
我已经创建了一个应用程序,为我的项目反应本机。当我在应用程序文件夹中复制我的项目文件,然后运行应用程序时,它说在node_module react redux中不存在,然后我在我的应用文件夹中使用npm install react-redux@7.0.3安装了redux,当我在命令提示符下为这个项目运行run-android命令时,它告诉我们- Could not read script 'E:\AppFolder\MyApp\node_modules\@react-native-community\cli-platform-android\native_modules.gradle&
注意:错误可能不同,但如果您在使用android时遇到任何错误,那么过去两天的代码没有任何更改,
我的错误-安装应用程序失败。错误:命令失败:./gradlew应用程序:installDebug -PreactNativeDevServerPort=8081
error Failed to install the app. Make sure you have the Android development environment set up:
Error: Command failed: ./gradlew app:installDebug
-PreactNativeDevServerP
我已经通过使用react-本机init创建了一个新项目,但是我得到了以下错误
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/vahiddavoudi/Project/BBW/android/app/build.gradle' line: 202
* What went wrong:
A problem occurred evaluating project ':app'.
**Could not find method implementation() for arg
这是软件包的版本
"react": "18.0.0", "react-native": "0.69.0", "react-native-firebase-push-notifications": "^2.0.2"
我安装了react本机-火基-推-通知,然后我运行npx反应-本机运行-android,但是,我得到了这个错误。
error Failed to install the app. Make sure you have the Android development
environment
我正在尝试安装RNTester,使用facebook/react-native教程[ ],但当我执行"./gradlew :RNTester:android:app:installDebug“时显示一个错误。
This is for the Ubuntu 19.04, running Android Studio 3.5 and java openjdk version "1.8.0_222"
** build.gradle File**
buildscript {
ext {
buildToolsVersion = "28.0.3
我无法使用代码react-native run-android运行react-native项目。我收到以下错误 info Starting JS server...
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task '
当我尝试执行以下代码时,我的react-native应用程序出现错误
react-native run-android --variant=release
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /Users/sanglee/Documents/react-native-firebase-start
我已经创建了一个React-Native项目。当我运行react-native run-ios时,构建成功了。但是当我运行react-native run-android时,我得到了这个错误:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: /Applications/ADT/sdk/platform-t
我正在开发一个react本机应用程序。当我尝试使用react-native run-android构建应用程序时,构建失败。以下是发生的错误的输出。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrac
我用Windows8创建了一个react原生应用程序react-native init AwesomeProject。
我安装了Genymotion 2.6.0,并在模拟器中运行了Google Nexus 7.0镜像。
我启动服务器react-native start。
当我运行react-native run-android时,我得到这个错误:
D:\react\AwesomeProject> react-native run-android
JS server already running.
Building and installing the app on the device
我已经完成了环境设置过程,与本机doc -> Android相同。
当我运行“react原生运行-android”时,我得到了错误信息:
任务:app:installDebug失败:构建失败,异常。
有人能帮我解决这个问题吗?
这就是错误..。
azran@Azran:~/Desktop/AwesomeProject2$ react-native run-android
info JS server already running.
info Building and installing the app on the device (cd android &&
我在OSX上使用的是react-native 0.43.3。我试着在Android上运行应用程序,然后收到消息
react-native run-android
Scanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew
我有一个困难的时间试图配置我的模拟器与反应本机。我已经安装了模拟器,但无法正确运行语句:react-native run-android,这是我一直得到的错误。(p.s.在疑难解答中似乎没有解决方案。我试图改变那些无效的等级属性)
C:\Users\Dell\AwesomeProject>react-native run-android
Scanning folders for symlinks in C:\Users\Dell\AwesomeProject\node_modules (31ms)
JS server already running.
Building and insta
在创建了一个react原生项目之后,我尝试在我的android设备上运行它。我将adb devices输入终端,我看到了我的设备。我运行了react-native run-android。过了一会儿,Task 'installDebug' not found in project ':app'出现了。 Jetifier found 962 file(s) to forward-jetify. Using 4 workers
...info Starting JS server...
'D:\Android\android-sdk\platform-to
我试图在mac上运行本机响应,在后台运行android仿真器并运行react-native run-android,我得到:
=> react-native run-android
Scanning 564 folders for symlinks in /Users/sao/Conv/Conv2/node_modules (19ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Could not
我在Windows的“用本地代码构建项目”选项卡中遵循了的导入。
这是\AwesomeProject\android\build.gradle的内容,在此之后,我在执行时会遇到错误:react本机运行-android。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.2"
minSdkVersio
当我通常通过带有npx react-native run android的终端运行从Android虚拟设备(仿真器)中的可视代码生成的本机react时,我突然面临这个错误
1. info Running jetifier to migrate libraries to AndroidX. You can
disable it using "--no-jetifier" flag. Jetifier found 954 file(s) to
forward-jetify. Using 8 workers... info Starting JS serv
我在macOS平台上处理React Native项目时遇到了一个问题。我的项目在IOS模拟器上工作正常,但在Android模拟器上不工作。
以下是错误日志:
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
> Configure project :app
WARNING: The specified Android SDK Build Tools version (28.0.2) is ig
我像往常一样开发了一个React Native项目;当我在执行react-native run android或等效的cd android && ./gradlew installDebug之后遇到了以下错误。就在最后一步,这个异常被捕获了:`
:app:assembleDebug
:app:installDebug
Exception in thread "Device List Monitor" java.lang.NullPointerException
at com.android.ddmlib.EmulatorConsole.check
我是react native新手,所以请帮助我从.I开始使用下面的命令创建我的第一个react-native项目
npx react-native init AwesomeProject
我已经安装了android studio,并在环境中添加了sdk的路径。在我的android中也做了开发人员的选择。当我运行该命令时
npx react-native run-android
它给了我很多这样的错误
* What went wrong:
Could not determine the dependencies of task ':app:installDebug'.
>
我已经反应了原生版本0.42.0。我的项目做得很好。
最近我升级到了react原生版本0.43.1。现在当我做的时候
react-native run-android
我被错误困住了。
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Could
我正在尝试将react设置为在android模拟器上工作。我使用的是Ubuntu 18.04。当我尝试使用“react-native run-android”时,我得到了这个错误信息: BUILD FAILED in 1m 21s
28 actionable tasks: 28 executed
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and ha
无法在我的React本机项目中解决此错误,该项目使用Firebase Cloud消息传递模块@react本机-火基/消息传递:
BUILD FAILED in 9s
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.bat app:installDebug -PreactNativeDevServ
我尝试使用终端上的npx react-native run-android在React Native中启动我的应用程序,但发生了此错误 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.
See https://docs.gradle.org/6.3/userguide/command_line_in
关于这个错误,有相当多的在线帖子。我的情况是,我有时可以建立联系,但大多数时候失败了。以下是失败时的错误:
PS C:\d\code\js\chatapp> react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused,
当我尝试在我的手机上上传react-native apk时,我得到一个错误:
:app
:installDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.a
我对react-native非常陌生,并试图通过阅读文档在react-native中运行我的第一个应用程序。我将我的应用程序命名为rdvTemp。当我在watchman/rdvTemp中运行命令react-native run-android时,我得到这个错误:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 855 file(s) to forward-jetify. Using 4 wor