Android Studio 中的长包名构建错误 [英] Long package name build error in Android Studio

查看:32
本文介绍了Android Studio 中的长包名构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用的包名很长:

app.running.com.voice.and.service.song.backup.audio.run.inthe.background

这是一个 B2B 项目,我现在不能减少他们的包名称,因为它已经修复了.

<块引用>

错误:写入 'D:\Google_Play\Android Studio\IndWork\Sound\Sound\app\build\generated\source\r\androidTest\debug\app\running\com\voice\and\ 失败service\song\backup\audio\run\inthe\background\test\R.java':

系统找不到指定的文件.(2).

我认为这个问题必须有一个解决方案.请指导.

解决方案

如果您使用 Windows 10 作为操作系统并安装了周年更新(使用此链接由 tuneComp 以验证您是否已安装周年更新),然后您可以按照 howToGeek 的此说明启用应该可以解决您的问题的长文件路径.

The package name of my app is very long:

app.running.com.voice.and.service.song.backup.audio.run.inthe.background

This is a B2B project and I can't reduce their package name now as it is already fixed.

Error:failed writing to 'D:\Google_Play\Android Studio\IndWork\Sound\Sound\app\build\generated\source\r\androidTest\debug\app\running\com\voice\and\service\song\backup\audio\run\inthe\background\test\R.java':

The system cannot find the file specified. (2).

I think there has to be a solution for this problem. Pls guide.

解决方案

If you are using Windows 10 as the OS and have install the anniversary update (Use this link by tuneComp to verify if you have installed the anniversary update), then you could follow this instructions by howToGeek to enable long file path which should fix your issue.

这篇关于Android Studio 中的长包名构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆