Android Studio 3.0 最新版本運行報錯: Task 'package' is ambiguous in root project 'MyRobot'. Candidates are: 'packageDebug', 'packageDebugAndroidTest', 'packageRelease'.

09:52:22.876 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Task 'package' is ambiguous in root project 'MyRobot'. Candidates are: 'packageDebug', 'packageDebugAndroidTest', 'packageRelease'.
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:52:22.877 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
09:52:22.878 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace.
09:52:22.878 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:52:22.878 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
09:52:22.879 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
09:52:22.879 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1m 2s
09:52:22.914 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices] [KOTLIN] Skipping kotlin cleanup since compiler wasn't called
09:52:22.944 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices] [KOTLIN] Disposed KotlinGradleBuildServices
09:52:22.945 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)

$ gradle tasks

Task :tasks


All tasks runnable from root project

Android tasks

androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.

Build tasks

assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.

Build Setup tasks

init - Initializes a new Gradle build.
wrapper - Generates Gradle wrapper files.

Help tasks

buildEnvironment - Displays all buildscript dependencies declared in root project 'MyRobot'.
components - Displays the components produced by root project 'MyRobot'. [incubating]
dependencies - Displays all dependencies declared in root project 'MyRobot'.
dependencyInsight - Displays the insight into a specific dependency in root project 'MyRobot'.
dependentComponents - Displays the dependent components of components in root project 'MyRobot'. [incubating]
help - Displays a help message.
model - Displays the configuration model of root project 'MyRobot'. [incubating]
projects - Displays the sub-projects of root project 'MyRobot'.
properties - Displays the properties of root project 'MyRobot'.
tasks - Displays the tasks runnable from root project 'MyRobot' (some of the displayed tasks may belong to subprojects).

Install tasks

installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallRelease - Uninstalls the Release build.

Verification tasks

check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testReleaseUnitTest - Run unit tests for the release build.

To see all tasks and more detail, run gradle tasks --all

To see more detail about a task, run gradle help --task <task>

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市明未,隨后出現(xiàn)的幾起案子结闸,更是在濱河造成了極大的恐慌,老刑警劉巖额划,帶你破解...
    沈念sama閱讀 221,695評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件蔫骂,死亡現(xiàn)場離奇詭異竿滨,居然都是意外死亡董瞻,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,569評論 3 399
  • 文/潘曉璐 我一進店門峻村,熙熙樓的掌柜王于貴愁眉苦臉地迎上來麸折,“玉大人,你說我怎么就攤上這事粘昨」柑洌” “怎么了?”我有些...
    開封第一講書人閱讀 168,130評論 0 360
  • 文/不壞的土叔 我叫張陵张肾,是天一觀的道長芭析。 經(jīng)常有香客問我,道長吞瞪,這世上最難降的妖魔是什么馁启? 我笑而不...
    開封第一講書人閱讀 59,648評論 1 297
  • 正文 為了忘掉前任,我火速辦了婚禮芍秆,結果婚禮上惯疙,老公的妹妹穿的比我還像新娘。我一直安慰自己妖啥,他們只是感情好霉颠,可當我...
    茶點故事閱讀 68,655評論 6 397
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著荆虱,像睡著了一般蒿偎。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上怀读,一...
    開封第一講書人閱讀 52,268評論 1 309
  • 那天酥郭,我揣著相機與錄音,去河邊找鬼愿吹。 笑死不从,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的犁跪。 我是一名探鬼主播椿息,決...
    沈念sama閱讀 40,835評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼坷衍!你這毒婦竟也來了寝优?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 39,740評論 0 276
  • 序言:老撾萬榮一對情侶失蹤枫耳,失蹤者是張志新(化名)和其女友劉穎乏矾,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,286評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡钻心,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,375評論 3 340
  • 正文 我和宋清朗相戀三年凄硼,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片捷沸。...
    茶點故事閱讀 40,505評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡摊沉,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出痒给,到底是詐尸還是另有隱情说墨,我是刑警寧澤,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布苍柏,位于F島的核電站尼斧,受9級特大地震影響,放射性物質發(fā)生泄漏试吁。R本人自食惡果不足惜突颊,卻給世界環(huán)境...
    茶點故事閱讀 41,873評論 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望潘悼。 院中可真熱鬧,春花似錦爬橡、人聲如沸治唤。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,357評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽宾添。三九已至,卻和暖如春柜裸,著一層夾襖步出監(jiān)牢的瞬間缕陕,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,466評論 1 272
  • 我被黑心中介騙來泰國打工疙挺, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留扛邑,地道東北人。 一個月前我還...
    沈念sama閱讀 48,921評論 3 376
  • 正文 我出身青樓铐然,卻偏偏與公主長得像蔬崩,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子搀暑,可洞房花燭夜當晚...
    茶點故事閱讀 45,515評論 2 359

推薦閱讀更多精彩內(nèi)容

  • 1沥阳、 恩和鄉(xiāng)的每戶住家都會把自己家用木柵欄圍起來,里面開墾一片菜地種菜自点,養(yǎng)幾頭奶牛桐罕,一些雞鴨,過著自給自足、寧靜祥...
    清萩閱讀 461評論 0 1
  • 雷震雨難忍功炮, 順窗直滑下溅潜。 草木張臂飲, 雨刮使勁刷死宣。 一一彭甫20 18年5月22日
    彭甫閱讀 521評論 8 17
  • TA 是一個渾身冒著傻氣的人 TA 是一個剛吃完又說餓的人 TA 是一個小眼睛雙眼皮的人 TA 是一個會害羞嘴又笨...
    木止閱讀 666評論 15 12
  • 今天值班伟恶,算是我的特殊時光,我想讓老婆也有特殊時光毅该,我覺得這個對每個人都很重要博秫,但是她并沒有選好自己的特殊時...
    軒寧爸閱讀 228評論 4 0
  • 學橋牌有很多種方式,我們借助于新睿橋牌學堂app開辦的“l(fā)iu神學堂”慢慢形成了一個很好的學習氛圍眶掌,正好一個多月挡育,...
    打牌的地鼠閱讀 309評論 0 1