在谷歌播放支持的设备0 [英] Supported devices 0 on Google play

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

问题描述

我知道类似的问题被张贴这里。 我上传的应用程序,以谷歌Play商店,但它与所有设备兼容。 该应用程序实际上是一个SignalR的聊天应用。 看看这个图片

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

我附上了AndroidManifest.xml中file.Any帮助将AP preciated。

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"/>

我使用 signalr library.I我使用这个库在Android的聊天应用程序。 我首先开发了基于eclipse的项目和使用的jar files.The应用程序工作正常。

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.

但是,当我尝试将应用程序上传到谷歌Play.It让我发现你的应用程序不支持任何设备的消息。 我甚至试着上传应用程序没有图书馆那么它被上传支持超过6K Android设备。

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.

因为这个库是用于摇篮的android.So更新,我只是把它转换成摇篮工程机器人工作室作为well.Works完美,但仍不会支持任何设备。

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.

这些都是我使用的Eclipse和Android的工作室的jar文件

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

推荐答案

最后我解决了problem.Here两种解决方案已经公布。

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

解决方案1:

第1步

首先,我将我的Eclipse项目到摇篮。

First i convert my eclipse project into Gradle.

第2步

下载此链接 .Generate的AAR文件。 添加这些文件作为依赖关系。

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

第3步

更新我的清单file.I错过了一些权限位置的支持。 现在,这是新的Andr​​oidManifest.xml

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它具有应用标签和活动也是如此。

Ofcourse it have application tag and activities as well.

解决方案2:

第1步

创建一个名为库目录中的主包中,并贴上所有的jar文件。您可以从这里下载jar文件的链接

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

第2步

添加依赖于主包/应用程序build.gradle

Add dependencies in build.gradle of main package/app

第3步

现在该怎么我的项目的主要build.gradle样子。

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

第四步

这是我的settings.gradle样子

This is how my settings.gradle looks like

第5步

做所有这些步骤之后,你仍然有进口errors.So无效高速缓存,并重新启动

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

在谷歌的最终输出播放

现在它支持超过7K设备

Now it supports over 7K devices

干杯:)

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

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