应用程序显示Play商店中支持0设备

时间:2015-08-24 19:50:47

标签: android google-play apk android-manifest device

将apk文件上传到Google Play并说支持的设备是0.不知道为什么但是已经添加了清单并在下面构建gradle。请告诉我为什么会这样。我正在努力找到这个问题的答案,这是非常沮丧

清单,

 <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
         package="com.songbook.noo.CampfireSongs" >



         <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="true" />
          <uses-feature
        android:name="android.software.leanback"
        android:required="true" />

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


    <application
        android:allowBackup="true"
        android:icon="@mipmap/launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.songbook.noo.CampfireSongs.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />

                <meta-data
                    android:name="com.google.android.gms.version"
                    android:resource="@integer/google_play_services_version" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.ButtonActivity"
            android:label="@string/title_activity_button"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongActivityA"
            android:label="@string/title_activity_song" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongBActivity"
            android:label="@string/title_activity_song_b" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.AdieuActivity"
            android:label="@string/title_activity_adieu" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.BabesActivity"
            android:label="@string/title_activity_babes" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.BabylonActivity"
            android:label="@string/title_activity_babylon" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.BattleActivity"
            android:label="@string/title_activity_battle" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.BloodRedActivity"
            android:label="@string/title_activity_blood_red" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongCActivity"
            android:label="@string/title_activity_song_c" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.CavillyActivity"
            android:label="@string/title_activity_cavilly" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongDActivity"
            android:label="@string/title_activity_song_d" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.DidiActivity"
            android:label="@string/title_activity_didi" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.DrinkActivity"
            android:label="@string/title_activity_drink" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongEActivity"
            android:label="@string/title_activity_song_e" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.EnglishActivity"
            android:label="@string/title_activity_english" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongFActivity"
            android:label="@string/title_activity_song_f" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FathomActivity"
            android:label="@string/title_activity_fathom" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FlowerActivity"
            android:label="@string/title_activity_flower" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FourCoachActivity"
            android:label="@string/title_activity_four_coach" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongGActivity"
            android:label="@string/title_activity_song_g" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.GallipoliActivity"
            android:label="@string/title_activity_gallipoli" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongHActivity"
            android:label="@string/title_activity_song_h" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.HowActivity"
            android:label="@string/title_activity_how" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongIActivity"
            android:label="@string/title_activity_song_i" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.IWillActivity"
            android:label="@string/title_activity_iwill" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongLActivity"
            android:label="@string/title_activity_song_l" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.LancashireActivity"
            android:label="@string/title_activity_lancashire" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.LibActivity"
            android:label="@string/title_activity_lib" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongMActivity"
            android:label="@string/title_activity_song_m" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.MarchingActivity"
            android:label="@string/title_activity_marching" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.MenOfActivity"
            android:label="@string/title_activity_men_of" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongOActivity"
            android:label="@string/title_activity_song_o" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.OverTheHillActivity"
            android:label="@string/title_activity_over_the_hill" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.PaceActivity"
            android:label="@string/title_activity_pace" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongPActivity"
            android:label="@string/title_activity_song_p" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.MyFavActivity"
            android:label="@string/title_activity_my_fav" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.ParcelActivity"
            android:label="@string/title_activity_parcel" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.PaulActivity"
            android:label="@string/title_activity_paul" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.PleasantActivity"
            android:label="@string/title_activity_pleasant" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.PleaseActivity"
            android:label="@string/title_activity_please" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongRActivity"
            android:label="@string/title_activity_song_r" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.RisingActivity"
            android:label="@string/title_activity_rising" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.RunActivity"
            android:label="@string/title_activity_run" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.LittleActivity"
            android:label="@string/title_activity_little" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.MenTyActivityActivity"
            android:label="@string/title_activity_men_ty" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.MyfavRudeActivity"
            android:label="@string/title_activity_myfav_rude" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongSActivity"
            android:label="@string/title_activity_song_s" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.ScarActivity"
            android:label="@string/title_activity_scar" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SpanActivity"
            android:label="@string/title_activity_span" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SwingActivity"
            android:label="@string/title_activity_swing" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongTActivity"
            android:label="@string/title_activity_song_t" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SoweryActivity"
            android:label="@string/title_activity_sowery" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.GendarmersActivity"
            android:label="@string/title_activity_gendarmers" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.GrenadierssActivity"
            android:label="@string/title_activity_grenadierss" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.BroomActivity"
            android:label="@string/title_activity_broom" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.CadgwithActivity"
            android:label="@string/title_activity_cadgwith" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.CuckooActivity"
            android:label="@string/title_activity_cuckoo" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.DiggerActivity"
            android:label="@string/title_activity_digger" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FoolActivity"
            android:label="@string/title_activity_fool" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.GoodActivity"
            android:label="@string/title_activity_good" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FranceActivity"
            android:label="@string/title_activity_france" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.FisheryActivity"
            android:label="@string/title_activity_fishery" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongKActivity"
            android:label="@string/title_activity_song_k" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.KeeperActivity"
            android:label="@string/title_activity_keeper" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.ManchesterActivity"
            android:label="@string/title_activity_manchester" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.OwlActivity"
            android:label="@string/title_activity_owl" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.RochesterActivity"
            android:label="@string/title_activity_rochester" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.ShoalsActivity"
            android:label="@string/title_activity_shoals" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.TravellerActivity"
            android:label="@string/title_activity_traveller" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.TwolitActivity"
            android:label="@string/title_activity_twolit" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.TwoMagActivity"
            android:label="@string/title_activity_two_mag" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongVActivity"
            android:label="@string/title_activity_song_v" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SearchResultsActivity"
            android:label="@string/title_activity_search_results" >
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.VicarActivity"
            android:label="@string/title_activity_vicar" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.SongWActivity"
            android:label="@string/title_activity_song_w" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WeBeActivity"
            android:label="@string/title_activity_we_be" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WhenActivity"
            android:label="@string/title_activity_when" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WasLadActivity"
            android:label="@string/title_activity_was_lad" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.JonesActivity"
            android:label="@string/title_activity_jones" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WhenKingActivity"
            android:label="@string/title_activity_when_king" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WhipActivity"
            android:label="@string/title_activity_whip" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.CockadeActivity"
            android:label="@string/title_activity_cockade" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WhiteTydActivity"
            android:label="@string/title_activity_white_tyd" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WildRoverActivity"
            android:label="@string/title_activity_wild_rover" >
        </activity>

        <activity
            android:name="com.songbook.noo.CampfireSongs.LassieGoActivity"
            android:label="@string/title_activity_lassie_go" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.YourGunsActivity"
            android:label="@string/title_activity_your_guns" >
        </activity>
        <activity
            android:name="com.songbook.noo.CampfireSongs.WoadActivity"
            android:label="@string/title_activity_woad" >
        </activity>

        <activity android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:theme="@android:style/Theme.Translucent" />


    </application>

</manifest>

    Build gradle,

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.songbook.noo.CampfireSongs"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 7
        versionName "1.1"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.squareup.picasso:picasso:2.3.2'
     'com.android.tools.build:gradle:1.3.0 '
    compile 'com.google.android.gms:play-services-ads:7.5.0'
}

谢谢

1 个答案:

答案 0 :(得分:0)

您正在使用:

<uses-feature
    android:name="android.software.leanback"
    android:required="true" />

但这种情况仅适用于AndroidTV,而不适用于Android手机。看一下reference here about Leanback freature.由于您没有使用Leanback主题,我认为您的应用不适用于Android TV,因此您必须从清单中删除此功能。

如Android TV应用指南中所述:

  

如果您正在开发在移动设备(手机,可穿戴设备,平板电脑等)以及Android TV上运行的应用,请将所需的属性值设置为false。如果将required属性值设置为true,则您的应用程序将仅在使用Leanback UI的设备上运行。