2016-08-24 16 views
3

アンドロイドシミュレータでプロジェクトを実行しようとしています。私は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タスクを持っていない理由を任意のアイデア?どうすれば元に戻すことができますか?

答えて

0

/アプリ/ build.gradle

0

反応ネイティブ実行アンドロイド--variant [productFlavorName] [デバッグ/リリース]

アンドロイドなどからproductFlavorsにコードを削除 反応するネイティブrun-android - ヴァリアントHuaweidebug

+1

あなたのプロジェクトに 'installDebug'タスクがない理由と提案された解決策が問題をどのように解決するのかについて説明することで、回答の質を向上させることができます。 – toonice

関連する問題