Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在下面显示的gradle中,我可以从代码测试实现中删除';junit:junit:4.12';在发布应用程序之前?_Android_Gradle_Publishing - Fatal编程技术网

Android 在下面显示的gradle中,我可以从代码测试实现中删除';junit:junit:4.12';在发布应用程序之前?

Android 在下面显示的gradle中,我可以从代码测试实现中删除';junit:junit:4.12';在发布应用程序之前?,android,gradle,publishing,Android,Gradle,Publishing,在android studio中,我可以从代码中删除: testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' 在发布应用程序之前 dependencies { testImpl

在android studio中,我可以从代码中删除:

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.1'
在发布应用程序之前

dependencies {
 testImplementation 'junit:junit:4.12'
 androidTestImplementation 'com.android.support.test:runner:1.0.1'
 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

}
是的,你可以移动它们 别忘了把它拿走

 defaultConfig {
    applicationId "com.example.networksecurity"
    minSdkVersion 24
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    //testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

和测试文件夹(..\app\src\test)(..\app\src\androidTest)

为什么?在没有这些测试实现代码的情况下运行应用程序是否有问题?感谢没有问题,这些实现只在调试buildTypesOk中生成,我想删除这些行,因为我已经完成了开发应用程序的测试,现在我想发布它,但我没有看到关于删除这些行的任何内容,这就是我提出这个问题的原因,因为当你发布你的应用程序时,这些实现将自动删除,并且这些实现使用dex 64K分配内存?