2012-07-27 74 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