Build Failed : Gradle With Uiautomator Android
I had been trying to build my test project jar file using gradle instead of ant with uiautomator android but I am getting BUILD FAILED error. I had referred using gradle with uiau
Solution 1:
It might be because the sdk folder name containing a space. Change the Android sdk folder from D:\Android Development to any other folder with no space in them,or rename the folder to Android_Development
Solution 2:
I have faced this issue on windows PC.
I have a custom Gradle task to create dex files and I was running it with commandLine command. The issue was it cannot identify dx tool in android SDK home.
So I have changed the path in commandLine to include .bat
at the end of dx tool in my build.gradle file.
commandLine androidSdkHome + '/' + androidSdkBuildToolsDir + '/' + 'dx.bat', '--dex', '--no-strict', '--output=' + buildDir +'\\' + project.name + '.jar', jar.archivePath
Post a Comment for "Build Failed : Gradle With Uiautomator Android"