谷歌播放"本地平台"显示的commons-IO-2.4.jar [英] Google Play "Native platforms" showing commons-io-2.4.jar

查看:194
本文介绍了谷歌播放"本地平台"显示的commons-IO-2.4.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚遇到了一个很奇怪的问题,在构建我的应用程序中,通过谷歌Play的测试版渠道分销,被拒绝部署到任何设备。一些调查,并从谷歌一些帮助透露,问题是这样的,在谷歌播放控制台向下钻取到APK细节时:

I have just encountered a very weird problem where a build of my app, for distribution through Google Play's beta channel, was refusing to deploy to any devices. Some investigation and some help from Google revealed that the problem was this, when drilling down to the APK detail in the Google Play console:

什么可能是原因造成的?这是如何依赖于指定我 build.gradle

What could have caused that? This is how the dependency was specified in my build.gradle:

compile 'org.apache.directory.studio:org.apache.commons.io:2.4'

和APK建这样的:

and the APK was built like this:

gradle clean
gradle assembleMarketRelease

其中,市场是产品的口味之一。该应用程序安装和运行得很好,当侧载。

where market is one of the product flavors. The app installs and runs just fine when side-loaded.

我工作围绕这一问题通过移除相关性,重新实现缺少的功能我自己,现​​在的应用程序的部署预期。不过,我想了解底层的问题。难道我指定的依赖性不正确?难道我建立正确?

I worked around the issue by removing that dependency, and reimplementing the missing functionality myself, and now the app is being deployed as expected. But I would like to understand the underlying problem. Did I specify the dependency incorrectly? Did I build incorrectly?

相关:<一href="http://stackoverflow.com/questions/18080950/google-play-developer-console-shows-ds-store-in-native-platforms-section-of-uplo">Google Play开发者控制台显示DS_Store在上传的.apk

推荐答案

我今天所面临的同样的问题。我上传了我的apk文件,并在控制台告诉我的apk有一个本地平台乔达-转换-1.5.jar。令人惊讶的,我没有使用的jar任何地方直接。研究后,我发现罐子里正在被我用另一个库。而正是在那罐子的'库'文件夹。因为我有这样的库源$ C ​​$ C,我重新编译该库放置了乔达 - 转换 - 1.5.jar中的库文件夹中。而且清洗和重新编译我的应用程序。一切都是固定的。

I was facing the same issue today. I uploaded my apk, and the console told me the apk had a Native platform 'joda-convert-1.5.jar'. Surprisingly I was not using that jar anywhere directly. After researching I found out that the jar was being used by another library I was using. And it was in the 'lib' folder of that jar. Since I had the source code of that library, I recompiled that library by placing that 'joda-convert-1.5.jar' in the 'libs' folder. And cleaned and recompiled my app. Everything was fixed.

看来,在一个'库'文件夹中任何被视为本机库,因此开发者控制台显示它这样。确保库中的库文件夹中。

It seems that anything in a 'lib' folder is seen as a Native Library, and hence the developer console shows it like that. Make sure the libraries are in the 'libs' folder.

希望这有助于。

这篇关于谷歌播放&QUOT;本地平台&QUOT;显示的commons-IO-2.4.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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