C:\ Users \ SINE90 \ AndroidStudioProjects \ MyfirstTest> gradlew connectAndroidTest :app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:应用:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:应用:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:transformClassesWithDexForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:应用:validateDebugSigning
:app:packageDebug UP-TO-DATE
:app:zipalignDebug UP-TO-DATE
:app:assembleDebug UP-TO-DATE
:app:preDebugAndroidTestBuild UP-TO-DATE
:应用:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl UP-TO-DATE
:app:processDebugAndroidTestManifest UP-TO-DATE
:app:compileDebugAndroidTestRenderscript UP-TO-DATE
:app:generateDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateDebugAndroidTestAssets UP-TO-DATE
:app:mergeDebugAndroidTestAssets UP-TO-DATE
:app:generateDebugAndroidTestResValues UP-TO-DATE
:app:generateDebugAndroidTestResources UP-TO-DATE
:app:mergeDebugAndroidTestResources UP-TO-DATE
:app:processDebugAndroidTestResources UP-TO-DATE
:app:generateDebugAndroidTestSources UP-TO-DATE
:应用:compileDebugAndroidTestJavaWithJavac
C:\ Users \ SINE90 \ AndroidStudioProjects \ MyfirstTest \ app \ src \ androidTest \ java \ com \ example \ sine90 \ myfirsttest \ ApplicationTest.java:10:error:class ApplicationTest与wi发生冲突 同名的包裹 公共类ApplicationTest扩展ApplicationTestCase { ^
C:\ Users \用户SINE90 \ AndroidStudioProjects \ MyfirstTest \生成应用\构建\ \源\ buildConfig \ androidTest \调试\ COM \示例\ sine90 \ myfirsttest \ ApplicationTest \ BuildConfig.java :4:错误:包com.example.sine90.myfirsttest.ApplicationTest与同名类冲突 package com.example.sine90.myfirsttest.ApplicationTest;
^
2错误
:app:compileDebugAndroidTestJavaWithJavac FAILED
失败:构建因异常而失败。
出了什么问题: 任务':app:compileDebugAndroidTestJavaWithJavac'执行失败。
编译失败;有关详细信息,请参阅编译器错误输出。
尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。
建立失败
总时间:36.495秒