【React Native】Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: No online devices found.

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 app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ‘:app:installDebug‘.
> com.android.builder.testing.api.DeviceException: No online devices found.

* 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 5s

    at checkExecSyncError (child_process.js:611:11)
    at execFileSync (child_process.js:629:15)
    at runOnAllDevices (/Users/apple/Desktop/FireReactNaitve/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Command.handleAction (/Users/apple/Desktop/FireReactNaitve/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:164:9)

  该问题出现在react-native run-android时。

  解决办法:1、删除项目中的node_modules

       2、重新执行npm install

  模拟器出现以上问题,如果办法不行,在Android Studio中删除掉模拟器,重新创建Your Vitual Devices即可。

【React Native】Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: No online devices found.

原文地址:https://www.cnblogs.com/xjf125/p/12249408.html

时间: 2024-10-12 23:27:54

【React Native】Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: No online devices found.的相关文章

【React Native错误集】* What went wrong: Execution failed for task ':app:installDebug'.

错误1:* What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_INSUFFICIENT_STORAGE 解决1:内存不足导致,删除模拟器或真机中其他不用的应用程序,释放空间. 错误2:the development

Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException

异常Log: Error:Execution failed for task ‘:app:dexDebug’. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/……/java” finished with non-zero exit value 2 错误原因: 这个异常在Android Studio编译运

Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: o

出现上述问题 检查下是否多次引用同一个jar包 有以下情况 1. module下jar包版本不同 2. 同一个module 在libs中包含了.jar,而在src下又把相应的source页加入了 3. gradle中是否重复编译,比如 已经加了compile fileTree(include: ['*.jar'], dir: 'libs') 然而在下面又加一句compile files('libs/xxx.jar') 参考 Error:Execution failed for task ':ap

Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决方法

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.transform.api.TransformException: java.util.zip.ZipException: duplicate entry: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 类似问题我通过审查build.gradle引用的lib,把所有功能重复

Android Studio 运行出现 Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

转载请标明出处: http://www.cnblogs.com/why168888/p/5978381.html 本文出自:[Edwin博客园] 我引用compile 'com.squareup.retrofit2:converter-jackson:2.1.0'Gradle没有错误,运行APP就出了这个error. 错误日志:Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.> c

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

使用android studio 时,编译成功但用build apk时却报错 环境: android studio 1.5, jdk1.7 错误:Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: ja

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug

这几天eclipse 项目迁移 android studio Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/Ac

[Exception Android 20] - Error:Execution failed for task ':app:processDebugResources'

Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\22.0.1\aapt.ex

Error:Execution failed for task ':app:processDebugResources'.

Error:Execution failed for task ':app:processDebugResources'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\andorid\android-studio-bundle-windows\sdk\build-tools\24.0.0-preview\aapt.