adding a java library to Qt creator

1,837 views
Skip to first unread message

Paul-Henri FERME

unread,
Jun 7, 2014, 1:33:25 AM6/7/14
to andro...@googlegroups.com
Hello All
I am using  specific  java code in my QT android app and more specifically i want to use the 
Notification.Builder standard android class in my service to handle user notification.

The javac compiler launched by Qt creator is complaining that this class does not exists.
Checking on various example/forums discussion this is probably due to the fact that i have to tell the java compiler to add
the android-support-v7-appcompat.jar library.
I checked and the file is there in my android-SDK.

there is a lot of documentation about adding a java library when you use eclipse IDE.
But i found nothing on qt creator forum.
I was wondering how can i do it with QT creator?

There is an "additional libraries" in QT-creator project settings but is seems this is more for c/c++ library.
Can i just add a jar library there?
Is there a way to use such a library in my qt-android?

I am currently using 
QT5.3
QTCreator3.11
and the latest linux android sdk from the android development site..

PHF



Paul-Henri FERME

unread,
Jul 18, 2014, 5:37:16 PM7/18/14
to andro...@googlegroups.com
Hi Solved now.
you need to put your jar file in your android/libs folder.
as described in http://qt-project.org/doc/qt-5/deployment-android.html  in section  "libraries"

PHF
Reply all
Reply to author
Forward
0 new messages