Google play 上支持的设备 0 [英] Supported devices 0 on Google play

查看:22
本文介绍了Google play 上支持的设备 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 库.我正在将此库用于 android 中的聊天应用程序.我首先开发了基于 Eclipse 的项目并使用了 jar 文件.该应用程序运行良好.

但是当我尝试将应用上传到 Google Play 时,它会显示一条消息,表明您的应用不支持任何设备.我什至尝试在没有库的情况下上传应用,然后上传支持超过 6K 的安卓设备.

由于该库已针对 android 的 gradle 进行了更新.所以我也简单地将其转换为 android studio 的 gradle 项目.完美运行,但仍不支持任何设备.

这些是我在 eclipse 和 android studio 中使用的 jar 文件

解决方案

终于解决了这个问题,这里贴出两个解决方案.

<块引用>

解决方案 1:使用 aar 文件

第 1 步

首先我将我的 Eclipse 项目转换为 Gradle.

第 2 步

从此链接下载最新的 SignalR.生成 aar 文件.将这些文件添加为依赖项.

第三步

更新了我的清单文件.我错过了一些位置支持权限.现在这是新的 AndroidManifest.xml

<屏幕 android:screenSize="normal" android:screenDensity="ldpi"/><屏幕 android:screenSize="正常" android:screenDensity="mdpi"/><屏幕 android:screenSize="正常" android:screenDensity="hdpi"/><屏幕 android:screenSize="正常" android:screenDensity="xhdpi"/><!-- 所有大尺寸屏幕--><屏幕 android:screenSize="large" android:screenDensity="ldpi"/><屏幕 android:screenSize="large" android:screenDensity="mdpi"/><屏幕 android:screenSize="large" android:screenDensity="hdpi"/><屏幕 android:screenSize="large" android:screenDensity="xhdpi"/><!-- 所有超大尺寸屏幕--><屏幕 android:screenSize="xlarge" android:screenDensity="ldpi"/><屏幕 android:screenSize="xlarge" android:screenDensity="mdpi"/><屏幕 android:screenSize="xlarge" android:screenDensity="hdpi"/><屏幕 android:screenSize="xlarge" android:screenDensity="xhdpi"/><!-- Nexus 7 的特殊情况--><屏幕 android:screenSize="large" android:screenDensity="213"/></兼容屏幕><权限 android:name="com.test.permission.MAPS_RECEIVE" android:protectionLevel="signature"/><使用权限 android:name="com.test.permission.MAPS_RECEIVE"/><使用权限 android:name="android.permission.INTERNET"/><使用权限android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><使用权限 android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/><使用权限 android:name="android.permission.ACCESS_COARSE_LOCATION"/><使用权限 android:name="android.permission.ACCESS_FINE_LOCATION"/><使用权限 android:name="android.permission.ACCESS_NETWORK_STATE"/>

当然它也有应用标签和活动.

<块引用>

解决方案 2:使用 jar 文件

第 1 步

在您的主包中创建一个名为libs"的目录并粘贴所有 jar 文件.您可以从此 链接

第 2 步

在主包/app的build.gradle中添加依赖

第 3 步

现在这就是我项目的主要 build.gradle 的样子.

第 4 步

这就是我的 settings.gradle 的样子

第 5 步

完成所有这些步骤后,您仍然有导入错误.所以使缓存无效并重新启动

<块引用>

Google Play 上的最终输出

现在它支持超过 7K 设备

干杯:)

I know similar question is posted here. I uploaded an app to Google Play Store but it is incompatible with all the devices. The app is actually a SignalR based chat application. Check out this image

I am attaching the AndroidManifest.xml file.Any help would be appreciated.

<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>

<supports-screens 
      android:smallScreens="true" 
      android:normalScreens="true" 
      android:largeScreens="true"
      android:xlargeScreens="true"
      android:anyDensity="true" />
<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="19" 
    android:maxSdkVersion="21" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission     android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

I am using signalr library.I am using this library for a chat app in android. I firstly developed eclipse based project and use the jar files.The app is working fine.

But when i try to upload the app to the Google Play.It shows me a message that your app doesn't supports any devices. I even tried to upload the app without the libraries then it gets uploaded supports over 6K android devices.

As this library is updated for gradle for android.So i simply convert it into gradle project for android studio as well.Works perfectly but still won't supports any devices.

These are the jar files i am using in eclipse and android studio

解决方案

Finally i solved the problem.Here two solutions have been posted.

Solution 1 : using aar files

Step 1

First i convert my eclipse project into Gradle.

Step 2

Downloading latest SignalR from this link.Generate the aar files. Add these files as dependencies.

Step 3

Updated my Manifest file.I missed some permissions for location support. Now this is the new AndroidManifest.xml

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="false"/>

<uses-feature
    android:name="android.permission.INTERNET"
    android:required="false" />
<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="19"
    android:maxSdkVersion="21" />

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:resizeable="true"   />

<compatible-screens>

    <!-- small size screens -->
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />

    <!--Only hdpi and xhdpi for normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />

    <!-- all large size screens -->
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />

    <!-- all xlarge size screens -->
    <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />

    <!-- Special case for Nexus 7 -->
    <screen android:screenSize="large" android:screenDensity="213" />

</compatible-screens>


<permission android:name="com.test.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
<uses-permission android:name="com.test.permission.MAPS_RECEIVE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Ofcourse it have application tag and activities as well.

Solution 2: using jar files

Step 1

Create a directory named "libs" inside your main package and paste all the jar files.You can download jar files from this link

Step 2

Add dependencies in build.gradle of main package/app

Step 3

Now this how my project's main build.gradle looks like.

Step 4

This is how my settings.gradle looks like

Step 5

After doing all these steps you still have import errors.So invalidate cache and restart

Final Output on Google Play

Now it supports over 7K devices

Cheers :)

这篇关于Google play 上支持的设备 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆