XML 在 Android 中调用 API 时出错

XML error while invoking an API in Android

"There is an error in XML document (7,26)"。这是我从网络 API 获得的响应。我检查了项目中的 Manifest.xml 和所有其他 XML 文件,但没有发现异常。 API 请求不是通过 XML 发送的,而是在 Main Activity 中使用异步任务发送的。如果问题需要代码和项目背景,请告诉我,我将编辑我的 post。在此先感谢大家。

   <?xml version="1.0" encoding="utf-8"?>
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.abdullahazam.myapplication"  >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<application
    android:allowBackup="true"
    android:icon="@drawable/pitb"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.NoActionBar">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

以上代码如前所述manifest.xml。下面一个是mainactivity.xml

<android.support.design.widget.AppBarLayout android:layout_height="wrap_content"
    android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar android:id="@+id/toolbar"
        android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
        android:background="#00a651" app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />

问题出在参数上。 API 服务器无法识别其中一种参数格式,并返回此类无法识别的错误。所以这种情况特别适用于我的应用程序和 API 服务器。