【问题标题】:syncadapter android developers has errors parsing in eclipsesyncadapter android开发人员在eclipse中解析错误
【发布时间】:2014-05-22 14:56:35
【问题描述】:

我正在关注有关同步适配器的 android 开发人员教程,并且在 /res/xml/ 内的 syncadapter.xml 中出现以下错误。

[2014-05-22 15:37:07 - InSituApp] res/xml/syncadapter.xml:文件名无效:必须仅包含 [a-z0-9_.]

syncadapter.xml:

<?xml version="1.0" encoding="utf-8"?>
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
    android:accountType="sync.adapter.datasync"
    android:allowParallelSyncs="false"
    android:contentAuthority="sync.adapter.DataContentProvider"
    android:isAlwaysSyncable="true"
    android:supportsUploading="false"
    android:userVisible="false" />

【问题讨论】:

    标签: java android xml eclipse android-syncadapter


    【解决方案1】:

    就像error 所说,您的文件名无效。

    如果你仔细看,你有一个空格作为第一个字符。将其更改为syncadapter.xml

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多