【问题标题】:content not allowed in prolog, error in deskop.ini fileprolog 中不允许的内容,desktop.ini 文件中的错误
【发布时间】:2016-04-10 23:23:50
【问题描述】:

我将我的 android 应用程序的文件夹放在谷歌驱动器中。前几天我删除了google drive主文件夹中的deskop.ini文件,因为我认为它是无害的。

每次我尝试执行我的 android 应用程序时,我都会收到以下错误:

错误:序言中不允许该内容。 C:\Users\Alvaro\Google Drive\Android Studio Projects\MySecurity1\app\src\main\res\values\desktop.ini 错误:错误: 序言中不允许的内容。 :app:mergeDebugResources FAILED 错误:任务 ':app:mergeDebugResources' 执行失败。

C:\Users\Alvaro\Google Drive\Morosof\AppSecurity\Android Studio Projects\MySecurity1\app\src\main\res\values\desktop.ini:0:0: 错误: 序言中不允许的内容。

我已从 bin 中放回文件deskop.ini,但没有任何结果。

如果我打开文件夹 \res\values 中的文件deskop.ini,这是其中的代码:

[.ShellClassInfo]
InfoTip=This file has been shared online.
IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe
IconIndex=12

如果我删除文件并尝试重建项目,我会在解析时出错...

【问题讨论】:

    标签: android-studio gradle


    【解决方案1】:

    我通过删除整个项目中的所有deskop.ini解决了这个问题!这些文件与项目无关,它们是由谷歌驱动器自动创建的,它们只是在项目中产生错误,因为 IDE 不理解它们!

    【讨论】:

      猜你喜欢
      • 2015-12-15
      • 1970-01-01
      • 2019-04-23
      • 1970-01-01
      • 2014-06-19
      • 2019-03-09
      • 2019-04-04
      • 2011-10-23
      • 1970-01-01
      相关资源
      最近更新 更多