アンドロイドシミュレータでプロジェクトを実行しようとしています。私はreact-native run-android
を実行すると、私は次のように取得しています:'installDebug'はルートプロジェクトに見つかりません 'android' React Native
FAILURE: Build failed with an exception.
* What went wrong: Task 'installDebug' not found in root project 'android'.
* Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
私は./gradlew tasks
を実行した場合、私は得る:
Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'android'.
components - Displays the components produced by root project 'android'. [incubating]
dependencies - Displays all dependencies declared in root project 'android'.
dependencyInsight - Displays the insight into a specific dependency in root project 'android'.
help - Displays a help message.
model - Displays the configuration model of root project 'android'. [incubating]
projects - Displays the sub-projects of root project 'android'.
properties - Displays the properties of root project 'android'.
tasks - Displays the tasks runnable from root project 'android'.
私は私のプロジェクトでinstallDebugタスクを持っていない理由を任意のアイデア?どうすれば元に戻すことができますか?
あなたのプロジェクトに 'installDebug'タスクがない理由と提案された解決策が問題をどのように解決するのかについて説明することで、回答の質を向上させることができます。 – toonice