"ArcGIS Runtime SDK for Android Development note"--Problem set: Error:Error:File path too long on Windows, keep below characters

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.