1. Preface
When using the Android Studio development environment, there are often the following errors, although the specifics are different, but the same problem is described, using a long path in Windows, more than 240 characters.
Error:Error:File path too long on Windows, keep below Characters:c:\users\admin\work\3-code\4-arcgis Android Sample Code\arcgisandroidquartzsample\vectortiledlayer\build\intermediates\exploded-aar\com.android.support\ Appcompat-v7\23.3.0\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png
Reprint Please specify Source: http://www.cnblogs.com/gis-luq/p/5407986.html
2. Solutions
Know the cause of the problem, solve nature, no less than the reduction path within 240 characters. The problem is solved naturally. For example, when creating a path directly to the C drive, the D drive, the path is very short, naturally there is no problem.
As shown: (PS: Figure is stolen, for reference only)
But if you do not want to change what to do, after Google to obtain the following implementation scenarios.
Locate the project Build.gradle file, and add the BuildDir folder option to the file.
allprojects { BuildDir = "C:/android_tmp/${rootproject.name}/${project.name}" repositories { ... }}
To illustrate the path, cut the map.
Recompile, problem solving! , you see the corresponding folder in the C-drive directory.
"ArcGIS Runtime SDK for Android Development note"--Problem set: Error:Error:File path too long on Windows, keep below characters