I did quick test for pluging demo and I can get the Facebook log in page(on Android device, after deploying).
So the plugindemo is here: https://github.com/Felgo/PluginDemo
Clone it from Github, open PluginDemo.pro in QtCreator.
Even with the free license it comes with, and the watermark, you should be able to run the example.
In order to correctly link and build the project with the configured plugin frameworks, please also see if “Use Gradle” is activated for the Android Build Kit in the “Projects” tab on the left side of Qt Creator.
You can also configure Gradle as default build system for Android in the Qt Creator Options:
Devices – Android – “Use Gradle Instead of Ant”
Let me know if this helps!
Note: After activating Gradle, please make sure to remove any previous installations on your device, as well as the build folder on your file system to make sure you get a fresh and clean build with Gradle.
I’ve followed the Felgo documentation on deploying to Android and made the changes you suggested above to use Gradle instead of Ant, but now have the following issue when deploying to my device:
A problem occurred evaluating root project 'android-build'.
> Failed to apply plugin [id 'com.android.application']
> Gradle version 2.10 is required. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\fayza\Documents\workspace\build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_e60c1b-Debug\android-build\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip
Could it be related to the Android SDK suggested in the Felgo documentation?
Change the last line, distrbutionUrl variable probably, make sure that it ends with gradle-2.10-all.zip not 2.2.1, what is probably there. Try again.
Why this happens? Need some explanation from Felgo team.
The gradle-wrapper configuration is usually automatically created by Qt Creator during the Android Build. The default version which is used there is 2.2.1 – but some framework dependencies require 2.10 to be used.
Hi Marcin, Gunther,
Many thanks for your input. With your suggestions I can deploy the PluginDemo and use the Facebook plugin.
I do have some feedback on the installation procedure:
On the deploy to Android page: https://felgo.com/doc/vplay-deployment/#android-sdk-tools – Under section ‘Configure Qt Creator’, alongside the textual description of setting paths for JDK, Android NDK, etc – it should also explicitly state ‘Check use Gradle instead of Ant’ – I missed this step because it wasn’t in the textual instructions
Include Marcin’s suggestion for change the gradle.properties wrapper if required
I agree with Kool, there is some space for improvements in terms of documentation.
In the end it can be frustrating that with limited time you have, as an indie developer(most of the time), you are force to spend more than needed on technical issues.
Anything that can save time in this regard is a welcome change.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: