PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Support libraries in Android app
Support libraries in Android app
Débuté par Stewart MICHAEL, 05 sep. 2016 13:52 - 10 réponses
Posté le 05 septembre 2016 - 13:52
I am attempting to output my first app to Android and I seem to have a fundamental misunderstanding somewhere.

I have downloaded Android Studio 2.1.3 and have downloaded both the Java development kit and followed the instructions to install the 'Android support repository".

However, Windev still says that it can not find the 'Android Support Library v4 extension' when I try to generate the application.

I have no idea where to go from here because the Android site then talks about adding the support libraries by editing the 'build.gradle file for your application'. Except of course that I can't build the application because I have not apparently installed the libraries.....

Any help urgently required as I was hoping to get this out to some teachers for the start of term.... which is today...

Thanks
Posté le 05 septembre 2016 - 14:47
Hi Michael

I did that a long time ago, so my memories are poor on the subject.
However, I remember that the help file contained a step by step
instruction on the configuration necessary, with download links.

Furthermore, in the last version of windev mobile, there is an option to
AUTOMATICALLY download/install/configure the whole shabang.

So either by reading the help or using the automated way, you should
solve that quite easily

Best regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 9/5/2016 à 5:52 AM, Stewart MICHAEL a écrit :
I am attempting to output my first app to Android and I seem to have a
fundamental misunderstanding somewhere.

I have downloaded Android Studio 2.1.3 and have downloaded both the Java
development kit and followed the instructions to install the 'Android
support repository".

However, Windev still says that it can not find the 'Android Support
Library v4 extension' when I try to generate the application.

I have no idea where to go from here because the Android site then talks
about adding the support libraries by editing the 'build.gradle file
for your application'. Except of course that I can't build the
application because I have not apparently installed the libraries.....

Any help urgently required as I was hoping to get this out to some
teachers for the start of term.... which is today...

Thanks
Posté le 05 septembre 2016 - 15:13
If I could solve it easily I wouldn't have posted this. I am not trying to waste anyone's time I am genuinely stuck. Having followed the instructions and still getting the error message (as I previously stated).

Does anyone have any experience of this not working as per the instructions please or any ide where things might have gone wrong. (Is there a 32 vs 64 bit issue for example?)

Thanks
Posté le 05 septembre 2016 - 15:47
Hi Stewart,

did you start the android SDK on your machine and check if that library
was downloaded correctly?

BEst regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 9/5/2016 à 5:52 AM, Stewart MICHAEL a écrit :
I am attempting to output my first app to Android and I seem to have a
fundamental misunderstanding somewhere.

I have downloaded Android Studio 2.1.3 and have downloaded both the Java
development kit and followed the instructions to install the 'Android
support repository".

However, Windev still says that it can not find the 'Android Support
Library v4 extension' when I try to generate the application.

I have no idea where to go from here because the Android site then talks
about adding the support libraries by editing the 'build.gradle file
for your application'. Except of course that I can't build the
application because I have not apparently installed the libraries.....

Any help urgently required as I was hoping to get this out to some
teachers for the start of term.... which is today...

Thanks
Posté le 05 septembre 2016 - 21:13
Thanks for getting back to me again.

Establishing if I am doing the right thing is part of the problem.

Windev asks for the Android support library v4
The link goes to a general thing about support libraries and downloading the Android support repository
Then when you check the plugins it mentions Android Support
Then in the <sdk>/extras/android/m2repository/com/android/support/ directory there is support-v4 directory


So apart from various different descriptions of the same thing.... yes it seems to have loaded correctly (and there must have been a dozen restarts since then)
Posté le 06 septembre 2016 - 13:52
Hi Stewart...

well, from here, I don't know what else to tell you...

So what about this: lets do a remote control session, and I'll be able
to compare what you have with what I have (working) on my machine.

Let me know if/when it suits you.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 9/5/2016 à 1:13 PM, Stewart MICHAEL a écrit :
Thanks for getting back to me again.

Establishing if I am doing the right thing is part of the problem.

Windev asks for the Android support library v4
The link goes to a general thing about support libraries and downloading
the Android support repository
Then when you check the plugins it mentions Android Support
Then in the <sdk>/extras/android/m2repository/com/android/support/
directory there is support-v4 directory


So apart from various different descriptions of the same thing.... yes
it seems to have loaded correctly (and there must have been a dozen
restarts since then)
Posté le 13 septembre 2016 - 08:56
seems like WDM still use Obsolete library,
there is Android Support Library (Obsolete) , checked it and install,
my android app able to compile after install it.

regards
Posté le 13 septembre 2016 - 08:56
seems like WDM still use Obsolete library,
there is Android Support Library (Obsolete) , checked it and install,
my android app able to compile after install it.

regards
Posté le 15 septembre 2016 - 10:38
Thanks for the answers. You are right it does use an obsolete library.

I had assumed the library had changed names following the web-link but there is a check box on the SDK where you can view obsolete libraries and it was there.

I am still having troubles getting the app all the way through to an Android phone but I am a step closer now so thanks again.
Posté le 24 janvier 2017 - 15:51
Hello,

I'm facing the same issue with WinDev mobile ver. 20.

So I have even installed Android studio and creating a simple app, it works. I have only set the custom path pointing to my JDK instead of using "custom" setting in the project properties. Before of that even Android studio, gives me error for Gradle.
So I have tryed to customize the same with WinDev Mobile during the generation of App, but always the same generic error message.
I have checked a lot of times by SDK console if everything was fine and so it is.

Any suggestion?
Thanks
Alberto
Posté le 24 janvier 2017 - 16:19
Hi Alberto,

android studio uses the LAST version of everything.
Windev mobile DOES NOT (especially v20)

So look at the help for what version is needed where, or use the
automatic install

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 1/24/2017 à 9:51 AM, Alberto Maggioni a écrit :
Hello,

I'm facing the same issue with WinDev mobile ver. 20.

So I have even installed Android studio and creating a simple app, it
works. I have only set the custom path pointing to my JDK instead of
using "custom" setting in the project properties. Before of that even
Android studio, gives me error for Gradle.
So I have tryed to customize the same with WinDev Mobile during the
generation of App, but always the same generic error message.
I have checked a lot of times by SDK console if everything was fine and
so it is.

Any suggestion?
Thanks
Alberto