2012-07-27 71 views
1

目前,我简单的PayPal整合在Android中,所以我设置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 "/>". 

如何解决这个问题,可以ü请帮助我

感谢

+2

你错过了关闭'configChanges'用'“'人物属性。 – Praveenkumar 2012-07-27 06:25:57

+0

感谢尤尔的帮助,我已经尝试过这种情况,但没有任何帮助 – SampathKumar 2012-07-27 06:43:12

回答

1

请参阅下面的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> 

Integrate Paypal in Android Application

+0

感谢您的帮助 – SampathKumar 2012-07-27 06:28:04

+0

我现在试了 – SampathKumar 2012-07-27 06:28:13

+0

您好先生,我有一个疑问,我们可以现在聊天 – SampathKumar 2012-07-27 06:34:19

0

取代android:configChanges= "keyboardHidden|orientation/>

android:configChanges= "keyboardHidden|orientation" />

+0

感谢您的回复 – SampathKumar 2012-07-27 06:23:43

+0

我已经尝试了这个,但是同样的结果来了 – SampathKumar 2012-07-27 06:23:58

+0

尝试使用'>'而不是'/>'关闭活动标记,然后添加''。清理项目并构建并运行。 – CQM 2012-07-27 06:25:03