目前我在 Android 中进行简单的 PayPal 集成,所以我将 Manifest.xml 文件设置为
<activity android:name="com.paypal.android.MEP.PayPalActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges= "keyboardHidden|orientation"/>
但是错误出现在SamplePaypal/AndroidManifest.xml中:
Element type "activity" must be followed by either attribute specifications, ">" or "/>".
如何解决这个问题,你能帮帮我吗
谢谢
最佳答案
请查看下面的 manifest.xml 代码并查看下面的链接以获取更多信息。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.paypal.MobilePayments.Pizza"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".PizzaMain"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.paypal.android.MEP.PayPalActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
</application>
</manifest>
关于android - Android 中的 list 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11682481/