[Solved] How to add google play services lib to qt for android
-
I am developing one project and for now trying to add google play services lib
it is very easy to do in eclipse i just need to add dependencies and add few lines to AndroidManifest.xml
https://developers.google.com/mobile-ads-sdk/docs/But i have no idea how i can do the same in qt project.
I use qt5.2
i know that if i had jar file i must put it in libs folder of android sources.
But this doesn't work in that case because google play services lib is not just jar file. It also had resources which is outside of jar. And if i put only jar in libs at start on emulator project quits with no found resources.So may somebody knows how to add java project to dependencies to qt project, or may be some way to put resources from google play services lib to qt project?
[edit: marked this topic as solved, Eddy]
-
ok i've found solution.
may be this will help somebody
first i did all what in this guide https://developers.google.com/mobile-ads-sdk/docs/
then to add reference to library project i added project.properties file
with@android.library.reference.1=../../../android/adt-bundle-mac-x86_64-20131030/sdk/extras/google/google_play_services/libproject/google-play-services_lib@
path must be relative not absolute
next what i need is to prepare google-play-services_lib
i go to google-play-services_lib folder in sdk
and runandroid update lib-project --path .
ant clean
ant releaseafter that all i need is just run my project in qt creator
-
Hi,
which views are you speaking of? In case you're using QML for developing your app you can also have a look at our V-Play AdMob plugin here: http://plugins.v-play.net/doc/plugin-admob/
Best,
Alex -
V-Play is commercial
here is my blog post how to add adMob on Android
http://xanm.blogspot.ru/2014/03/admob-in-qt.html -
I think so this app has been worked on real device (not terminal)
-
Today I can't test my program on emulator (Google Services exist)