[Interest] AndroidManifest Minimum required API not working as expected

Gianluca gmaxera at gmail.com
Tue May 10 08:26:21 CEST 2016


Please, can you tell us if all these problems appear using “ant” or using “gradle” ?
(Old Android build was with “ant”, now ant is deprecated and you should use only “gradle” … but Qt still support both)

Il giorno 10/mag/2016, alle ore 05:04, NoRulez <norulez at me.com> ha scritto:

> Hello,
> 
> I've the same problem when building with CMake on the command line. I want target android-21 but android-23 is used. It seems that there is maybe a bug somewhere.
> 
> 
> Am 09.05.2016 um 23:17 schrieb Igor Mironchik <igor.mironchik at gmail.com>:
> 
>> Really weird...
>> 
>> What is command lines when you compiling?
>> 
>> Is there android-9 or android-23 in pathes?
>> 
>> On 10.05.2016 00:12, Nuno Santos wrote:
>>> Even more weird...
>>> 
>>> ➜  ~ cat app.pro.user | grep Sdk
>>>       <value type="QString" key="BuildTargetSdk">android-23</value>
>>>       <value type="QString" key="BuildTargetSdk">android-23</value>
>>>       <value type="QString" key="BuildTargetSdk">android-23</value>
>>> ➜  ~
>>> 
>>>> On 09 May 2016, at 22:03, Igor Mironchik <igor.mironchik at gmail.com> wrote:
>>>> 
>>>> Can you open *.user file and search for android record like this:
>>>> 
>>>> <value type="QString" key="BuildTargetSdk">android-9</value>
>>>> 
>>>> If you will see here android-9 then you project will be built with API 9, I guess...
>>>> 
>>>> On 09.05.2016 23:35, Nuno Santos wrote:
>>>>> That doesn’t seem to be true. At least with the following Qt Creator:
>>>>> 
>>>>> Qt Creator 3.6.1
>>>>> 
>>>>> Based on Qt 5.6.0 (Clang 7.0 (Apple), 64 bit)
>>>>> 
>>>>> Built on Mar 14 2016 09:38:07
>>>>> 
>>>>> From revision 53b8ca08bf
>>>>> 
>>>>> <Mail Attachment.png>
>>>>> 
>>>>> 
>>>>> I had to open the generated Makefile and make a global replace of android-9 for android-21 to be able to build with API 21
>>>>> 
>>>>>> On 09 May 2016, at 21:10, Igor Mironchik <igor.mironchik at gmail.com> wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> Do you build with QtCreator? If so then when QtCreator configures project it invokes tools/android Android NDK tool and select highest API available and build with such settings.
>>>>>> 
>>>>>> On 09.05.2016 22:47, Nuno Santos wrote:
>>>>>>> Nuno Santos
>>>>>>> Founder / CEO / CTO
>>>>>>> www.imaginando.pt
>>>>>>> +351 91 621 69 62
>>>>>>> 
>>>>>>> I’m selecting Android 5.0 (API 21) in Android Manifest and it is compiling against 17.
>>>>>>> 
>>>>>>> I have deleted all the build directories as well as all the project .pro.user and selected API 21 again. Hit qmake and builded. It is now building against 9:
>>>>>>> 
>>>>>>> -isystem /Users/nsantos/android/ndk/platforms/android-9
>>>>>>> 
>>>>>>> Why is this happening? What does control Android NDK API usage?
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> 
>>>>>>> Nuno
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> Interest mailing list
>>>>>>> Interest at qt-project.org
>>>>>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Interest mailing list
>>>>>> Interest at qt-project.org
>>>>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>>> 
>>>> 
>>> 
>> 
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160510/6fff2cc1/attachment.html>


More information about the Interest mailing list