Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread Jérôme Godbout
E_DIR/$$targetDirectory/$$basename(fileName))

}



# We need to make our new command globally available so that qmake can add 
it to the generated Makefile

export($${commandAlias}.commands)

export($${commandAlias}.depends)



# To ensure our command is run before compilation occurs we add our command 
to the dependency tree of 'first' (creating the tree if required)

isEmpty(first.depends) {

first.depends = $(first) $${commandAlias}

export(first.depends)

   return(first $${commandAlias})

}

first.depends += $${commandAlias}

export(first.depends)

return($${commandAlias})

}



33

# Inside Android.pri



include(CopyAndroidSources.pri)



defineReplace(androidPathMaker) {

for(a, $$3) {

result += $$1/$$2/$${a}

}

return($$result)

}



defineReplace(androidSourceMaker) {

 return($$copyAndroidSources($$1, $$2, $$androidPathMaker($$3, $$4, 
$$5)))

}





---

begin discussion

--


anybody have some weird injection of permission and requirements into the 
android manifest? seem like Qt inject 3 permission no matter if they are 
already present into the AndroidManifest, then the compile fail with duplicated 
entry?!? why is he injecting :

  
  
  
  
Is Qt 5.15 need those?  I do use the  gps location into my application, any way 
to prevent him for injecting those value? it corrupt the 
AndroidManifest.xmlAlso the


doesn’t get filled, do we still need this or change the value into our 
AndroidManifest.xml? (edited)
1:22<https://qtmob.slack.com/archives/C204H1U11/p1591032140053500>
oh, into the GUI when editing the AndroidManifest.xml into QtCreator you get 2 
checkbox to include default, I normally edit my AndroidManifest.xml into 
textEditor, I did not see it, it does remove the comment part :



Seem like we need to remove the comments now to prevent QtCreator to inject
Screen Shot 2020-06-01 at 1.20.19 PM.png
<https://files.slack.com/files-pri/T09PZTN5A-F01500C8D6D/screen_shot_2020-06-01_at_1.20.19_pm.png>
<https://files.slack.com/files-pri/T09PZTN5A-F01500C8D6D/screen_shot_2020-06-01_at_1.20.19_pm.png>[cid:image006.png@01D68823.23F044B0]<https://files.slack.com/files-pri/T09PZTN5A-F01500C8D6D/screen_shot_2020-06-01_at_1.20.19_pm.png>

1:25<https://qtmob.slack.com/archives/C204H1U11/p1591032312055300>
still have some question about:


I guess this is useless now?! in 5.12 it resolve to:


same AndroidManifest.xml Source
[cid:image002.jpg@01D6881E.EF29AA90]
Jerome Godbout<https://app.slack.com/team/U8XG6B6QL>  1:32 
PM<https://qtmob.slack.com/archives/C204H1U11/p1591032763057300>
and


is not backward compatible with 5.12, do we really need 2 different 
AndroidManifest to support both 5.12 and 5.15 now? That’s annoying, We will 
need to maintain 2 version of the file or is there an easy way to merge that 
rules before the build (inject either depending on Qt version?
[cid:image003.png@01D6881E.EF29AA90]
ekkescorner<https://app.slack.com/team/U4MCM14AG>  1:51 
PM<https://qtmob.slack.com/archives/C204H1U11/p1591033889058300>
@Jerome Godbout<https://qtmob.slack.com/team/U8XG6B6QL> have not tried it yet 
but it seems we need 2 different manifest versions for 5.14/5.15 and 5.12/5.13
https://stackoverflow.com/questions/61097966/qt-on-android-runtime-error-invalid-package-identifier-when-getting-bag-for-res/62108461#62108461
and https://bugreports.qt.io/browse/QTBUG-80444 (edited)
[Stack Overflow]Stack Overflow
Qt on Android Runtime error: Invalid package identifier when getting bag for 
resource number 
0x<https://stackoverflow.com/questions/61097966/qt-on-android-runtime-error-invalid-package-identifier-when-getting-bag-for-res/62108461#62108461>
I am getting this strange error after updating my Qt version from 5.13.1 to 
5.14.2 and I am not sure what is the cause of it (I also updated my gradle 
version from 4.1.0 to 5.5.1). The error give the
[cid:image002.jpg@01D6881E.EF29AA90]
Jerome Godbout<https://app.slack.com/team/U8XG6B6QL>  2:31 
PM<https://qtmob.slack.com/archives/C204H1U11/p1591036316059700>
seem like it. I was wondering if any XML cross platform tool to merge xml into 
qmake was possible?? maybe an XSLT to modify the AndroidManifest based on Qt 
version would be nice.
[cid:image002.jpg@01D6881E.EF29AA90]
Jerome Godbout<https://app.slack.com/team/U8XG6B6QL>  4:39 
PM<https://qtmob.slack.com/archives/C204H1U11/p1591043978060300>
seems to be working, I did a check and copy the right manifest when building 
depending on the Qt version. thanks





-Original Message-
From: Interest  On Behalf Of Alexander Dyagilev
Sent: September 11, 2020 8:32 AM
To: Markus Haberlander ; ekke 

Cc: Qt Interest 
Subject: Re: [Interest] No implementation found for boolean 
org

Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread Alexander Dyagilev

Thanks. This + https://wiki.qt.io/AndroidServices helped.

On 9/11/2020 2:19 PM, Markus Haberlander wrote:

Have a look at  https://wiki.qt.io/Qt_for_Android_known_issues :

In order to work with Qt 5.14.0 and later releases, the
AndroidManifest.xml generated for older versions has to be updated.
This can be done either by replacing the manifest automatically using
Qt Creator, or by manually editing the manifest. An example of the
modifications needed can be found in
https://codereview.qt-project.org/c/qt/qtandroidextras/+/278987



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread Markus Haberlander
Have a look at  https://wiki.qt.io/Qt_for_Android_known_issues :

In order to work with Qt 5.14.0 and later releases, the
AndroidManifest.xml generated for older versions has to be updated.
This can be done either by replacing the manifest automatically using
Qt Creator, or by manually editing the manifest. An example of the
modifications needed can be found in
https://codereview.qt-project.org/c/qt/qtandroidextras/+/278987

Hope this helps,
Markus


Am Fr., 11. Sept. 2020 um 12:29 Uhr schrieb ekke :
>
> yes - it's no 'update'
> I have checked-in all files created from template into my git
> then create templates and check the diffs so you can manually adjust
>
>
> Am 11.09.20 um 11:53 schrieb Alexander Dyagilev:
> > There is no such a feature. It just completely overwrites manifest so
> > I loose everything and my project gets broken even more. It's not an
> > update
> >
> > On 9/11/2020 9:59 AM, ekke wrote:
> >> Have you tried to update your templates ?
> >> Project - Android - Build - Create Templates
> >> ekke
> >>
> >> Am 11.09.20 um 05:42 schrieb Alexander Dyagilev:
> >>> Hello,
> >>>
> >>> I'm trying to build and run my project under Qt 5.15.1. The app
> >>> crashes on start with the following output:
> >>>
> >>> E loadmanager.fd: No implementation found for boolean
> >>> org.qtproject.qt5.android.QtNative.startQtAndroidPlugin(java.lang.String,
> >>> java.lang.String) (tried
> >>> Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin and
> >>> Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin__Ljava_lang_String_2Ljava_lang_String_2)
> >>>
> >>> E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
> >>>
> >>> Qt 5.12.9 works fine. I suspect there some changes in
> >>> androidmanifest.xml are required. Failed to google which ones...
> >>>
> >>> Any help?
> >>>
> >>> ___
> >>> Interest mailing list
> >>> Interest@qt-project.org
> >>> https://lists.qt-project.org/listinfo/interest
> >>
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> https://lists.qt-project.org/listinfo/interest
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread ekke

yes - it's no 'update'
I have checked-in all files created from template into my git
then create templates and check the diffs so you can manually adjust


Am 11.09.20 um 11:53 schrieb Alexander Dyagilev:
There is no such a feature. It just completely overwrites manifest so 
I loose everything and my project gets broken even more. It's not an 
update


On 9/11/2020 9:59 AM, ekke wrote:

Have you tried to update your templates ?
Project - Android - Build - Create Templates
ekke

Am 11.09.20 um 05:42 schrieb Alexander Dyagilev:

Hello,

I'm trying to build and run my project under Qt 5.15.1. The app 
crashes on start with the following output:


E loadmanager.fd: No implementation found for boolean 
org.qtproject.qt5.android.QtNative.startQtAndroidPlugin(java.lang.String, 
java.lang.String) (tried 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin and 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin__Ljava_lang_String_2Ljava_lang_String_2) 


E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread

Qt 5.12.9 works fine. I suspect there some changes in 
androidmanifest.xml are required. Failed to google which ones...


Any help?

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread Stanislas RENAN

Hi,

You have to diff templates bundled with the two Qt versions and 
integrate manually the differences in the xml of your project.


May not fix your case, though.

Stanislas

Le 11/09/2020 à 11:53, Alexander Dyagilev a écrit :
There is no such a feature. It just completely overwrites manifest so 
I loose everything and my project gets broken even more. It's not an 
update


On 9/11/2020 9:59 AM, ekke wrote:

Have you tried to update your templates ?
Project - Android - Build - Create Templates
ekke

Am 11.09.20 um 05:42 schrieb Alexander Dyagilev:

Hello,

I'm trying to build and run my project under Qt 5.15.1. The app 
crashes on start with the following output:


E loadmanager.fd: No implementation found for boolean 
org.qtproject.qt5.android.QtNative.startQtAndroidPlugin(java.lang.String, 
java.lang.String) (tried 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin and 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin__Ljava_lang_String_2Ljava_lang_String_2) 


E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread

Qt 5.12.9 works fine. I suspect there some changes in 
androidmanifest.xml are required. Failed to google which ones...


Any help?

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread Alexander Dyagilev
There is no such a feature. It just completely overwrites manifest so I 
loose everything and my project gets broken even more. It's not an 
update


On 9/11/2020 9:59 AM, ekke wrote:

Have you tried to update your templates ?
Project - Android - Build - Create Templates
ekke

Am 11.09.20 um 05:42 schrieb Alexander Dyagilev:

Hello,

I'm trying to build and run my project under Qt 5.15.1. The app 
crashes on start with the following output:


E loadmanager.fd: No implementation found for boolean 
org.qtproject.qt5.android.QtNative.startQtAndroidPlugin(java.lang.String, 
java.lang.String) (tried 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin and 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin__Ljava_lang_String_2Ljava_lang_String_2) 


E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread

Qt 5.12.9 works fine. I suspect there some changes in 
androidmanifest.xml are required. Failed to google which ones...


Any help?

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] No implementation found for boolean org.qtproject.qt5.android.QtNative.startQtAndroidPlugin

2020-09-11 Thread ekke

Have you tried to update your templates ?
Project - Android - Build - Create Templates
ekke

Am 11.09.20 um 05:42 schrieb Alexander Dyagilev:

Hello,

I'm trying to build and run my project under Qt 5.15.1. The app 
crashes on start with the following output:


E loadmanager.fd: No implementation found for boolean 
org.qtproject.qt5.android.QtNative.startQtAndroidPlugin(java.lang.String, 
java.lang.String) (tried 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin and 
Java_org_qtproject_qt5_android_QtNative_startQtAndroidPlugin__Ljava_lang_String_2Ljava_lang_String_2)

E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread

Qt 5.12.9 works fine. I suspect there some changes in 
androidmanifest.xml are required. Failed to google which ones...


Any help?

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest