简体   繁体   English

我找不到构建工具16,可以使用17吗?

[英]I don't find the build tools 16 can I use the 17?

I am relative new in Android world so if my question don't make sens please have patient with the new guy. 我在Android世界中相对较新,所以如果我的问题没有引起大家的注意,请耐心等待新手。

I what to dexifing some jars so I can run a OSGi environment on android. 我该如何清理一些jar,以便可以在android上运行OSGi环境。 My problem is I can't download the build-tools revision 16 with the SDK manager because isn't there. 我的问题是我无法使用SDK Manager下载构建工具修订版16,因为它不存在。

I tried direct download in this both links: 我尝试在这两个链接中直接下载:

http://dl.google.com/android/installer_r16-windows.exe http://dl.google.com/android/installer_r16-windows.exe

http://developer.android.com/sdk/older_releases.html http://developer.android.com/sdk/older_releases.html

in the first it has a Manager than do not download the version 16 instead force me to download the version 22.x and the second does not have the build tools. 在第一个中,它具有管理器,而不是不下载版本16,而是强迫我下载版本22.x,第二个不具有构建工具。

So: can I use the dx command of the build tools 17 if my phone has android 4.1 (API 16)? 所以:如果我的手机具有android 4.1(API 16),我可以使用构建工具17的dx命令吗?

If anyone is now wondering why I am not only trying. 如果有人现在想知道为什么我不仅尝试。 This is because there are several jar which I think wouldn't work straightforward then I want to avoid a problem source before starting and not knowing what is the problem I have to solve. 这是因为有几个jar我认为无法直接工作,所以我想在开始之前避免出现问题源并且不知道我要解决的问题是什么。

PS: I want to run OSGi for running a already developed software (middleware) so any help to make this possible even without dexifing would be helpful (if it is reasonable in complexity and time). PS:我想运行OSGi来运行已经开发的软件(中间件),因此,即使不进行处理也可以帮助实现这一目标(如果在复杂性和时间上合理的话)。

If I understood you correctly, you wonder will it work on Api-16-driven device. 如果我理解正确,您会怀疑它是否可以在Api-16驱动的设备上运行。

Look at the AndroidManifest.xml in your project 查看您项目中的AndroidManifest.xml

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

So, if minSdkVersion (minimal) is less or equals 16 - it will work fine 因此,如果minSdkVersion (最小值)小于或等于16,则可以正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM