2013-05-10 123 views
10

你知道,我現在真的很失望。我花了最近5個月製作這個應用程序,從設計到編碼a..z,現在我就這樣結束了:我的應用程序支持0個設備。Android:我的應用程序支持0個設備

然後,我花了將近24小時已經試圖弄清楚到底發生了什麼,但仍然無法正常工作。我需要幫助。

PS:在「本地化:默認+ 49種語言」字段:在我的應用我只有英語使用默認值/strings.xml中,但我不介意用戶在其他語言的手機上會用英文查看我的應用程序。

UPDATE:找到並添加我澄清的答案,但接受的答案讓我去的正確途徑。所以謝謝。

這裏是我的了:

enter image description here

<?xml version="1.0" encoding="utf-8"?> 
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="xxxxxxxxxxx" 
    android:versionCode="2" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="17" /> 

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.CAMERA" /> 
    <uses-permission android:name="android.permission.INTERNET" />   
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  

    <uses-feature android:name="android.hardware.CAMERA" /> 
    <uses-feature android:name="android.hardware.camera.AUTOFOCUS" /> 

    <application 
     android:hardwareAccelerated="true"   
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/Holo.Theme" 
     android:name="org.holoeverywhere.app.Application"> 

     <!-- Blank Activity --> 
     <activity    
      android:name=".BlankActivity" 
      android:label="@string/app_name" 
      android:screenOrientation="portrait" 
      android:theme="@android:style/Theme.NoTitleBar"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

     <!-- Access Activity --> 
     <activity          
      android:name=".AccessActivity" 
      android:label="@string/title_activity_access"    
      android:screenOrientation="portrait"> 
     </activity> 

     <!-- Register Activity --> 
     <activity       
      android:name=".RegisterActivity" 
      android:screenOrientation="portrait"    
      android:label="@string/lbActRegister"> 
     </activity> 

     <!-- Login Activity --> 
     <activity       
      android:name=".LoginActivity" 
      android:screenOrientation="portrait"    
      android:label="@string/lbActLogin"> 
     </activity> 

     <!-- Recovery Activity --> 
     <activity    
      android:name=".RecoveryActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActRecovery"> 
     </activity> 

     <!-- Dashboard Activity --> 
     <activity          
      android:name=".DashboardActivity" 
      android:label="@string/app_name" 
      android:launchMode="singleTop"    
      android:screenOrientation="portrait" 
      android:configChanges="orientation|keyboardHidden|screenSize"> 
     </activity> 

     <!-- Edit Profile Activity --> 
     <activity    
      android:name=".EditProfileActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActEditProfile"> 
     </activity> 

     <!-- Feedback Activity --> 
     <activity    
      android:name=".FeedbackActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActFeedback"> 
     </activity> 

     <!-- TOSU Activity --> 
     <activity    
      android:name=".TOSUActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActTerms"> 
     </activity> 

     <!-- About Activity --> 
     <activity    
      android:name=".AboutActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActAbout"> 
     </activity> 

     <!-- Donation Activity --> 
     <activity    
      android:name=".DonationActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActDonation"> 
     </activity> 

     <!-- Image Upload Activity --> 
     <activity       
      android:name=".photo.ImageUploadActivity" 
      android:screenOrientation="portrait" 
      android:label="@string/lbActUpload" 
      android:configChanges="orientation|keyboardHidden|screenSize"> 
     </activity> 

     <!-- Me Detail Activity --> 
     <activity    
      android:name=".photo.MeDetailActivity" 
      android:label="@string/lbActCollection" 
      android:parentActivityName=".DashboardActivity"    
      android:configChanges="orientation|keyboardHidden|screenSize"> 

      <meta-data android:name="android.support.PARENT_ACTIVITY" 
         android:value=".DashboardActivity" /> 
     </activity> 

     <!-- Explore Detail Activity --> 
     <activity    
      android:name=".photo.ExploreDetailActivity" 
      android:label="@string/lbActExplore" 
      android:parentActivityName=".DashboardActivity"    
      android:uiOptions="splitActionBarWhenNarrow" 
      android:configChanges="orientation|keyboardHidden|screenSize"> 

      <meta-data android:name="android.support.PARENT_ACTIVITY" 
         android:value=".DashboardActivity" /> 
     </activity> 

     <!-- Liked Detail Activity --> 
     <activity    
      android:name=".photo.LikedDetailActivity" 
      android:label="@string/lbActLikes" 
      android:parentActivityName=".DashboardActivity"    
      android:configChanges="orientation|keyboardHidden|screenSize"> 

      <meta-data android:name="android.support.PARENT_ACTIVITY" 
         android:value=".DashboardActivity" /> 
     </activity> 

    </application> 

</manifest> 
+1

有您激活APK? – 2013-05-10 13:46:37

+0

是的。這也是最新的Google Play商店。 – jerrytouille 2013-05-10 13:47:45

+2

我會仔細檢查您的每個權限和硬件要求,請嘗試逐個刪除它們,看看哪一個讓您降到0. 也許其中一個存在拼寫錯誤。 – 2013-05-10 13:49:47

回答

1

嘗試與android.hardware.camera改變android.hardware.CAMERA。然後

對於任何下面的權限,則可以通過明確聲明暗示特徵 明確地,在一個元件,具有 機器人禁用基於 隱含特徵過濾:需要=「false」屬性。

並根據permissions features,您沒有添加功能android.hardware.camera.autofocus

那麼增加這個功能或者改變您的相機權限:

<uses-feature android:name="android.hardware.camera" android:required="false" /> 

希望工程:)

+0

nope沒有工作。編輯了我原來的帖子。謝謝。 – jerrytouille 2013-05-10 14:52:50

+0

用'android.hardware.camera'改變'android.hardware.CAMERA'只是爲了看看會發生什麼 – 2013-05-10 14:54:14

+0

不行不行( – jerrytouille 2013-05-10 15:23:00

相關問題