【问题标题】:Specified for property 'adb Exe' does not exist (react-native)为属性“adb Exe”指定的不存在(react-native)
【发布时间】:2020-06-19 23:40:44
【问题描述】:

我正在尝试构建一个 react-native 项目但每次都显示以下错误,但我已经安装了 adb。

* What went wrong:
A problem was found with the configuration of task ':app:installDebug'.
> File '/home/praneeth/Android/platform-tools/adb' specified for property 'adbExe' does not exist.

我重新安装了 adb 但没有机会解决问题。

我的构建环境是 Ubuntu 20.04

编辑 请注意,根据此答案React Native android adbExe does not exist

,我以其他方式将 adb 二进制文件复制为 adb.exe

【问题讨论】:

  • 可能重复,请参考下面的解决方案React Native android adbExe does not exist
  • @SudarakaSenevirathne 在发布此之前我提到了它。但不是运气。构建器直到现在都没有错误地工作。我想知道这是偶然发生的。

标签: android react-native


【解决方案1】:

根据@dudeperryfect

我在我的 react native 项目中的 settings.gradle 中找到了一个答案,上面写着将“/”替换为“”。文件中唯一的内容是:rootProject.name = ‘AwesomeProject’ include ‘:app’

我已添加:

export PATH="$HOME/bin:$PATH"
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

React native Android emulator error on Ubuntu 18.04

【讨论】:

    猜你喜欢
    • 2023-02-25
    • 2019-11-18
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 1970-01-01
    • 2016-05-01
    • 2021-10-25
    • 1970-01-01
    相关资源
    最近更新 更多