Android app creation: Error durring package check before ins

Just starting out? Need help? Post your questions and find answers here.
patrickz22
Posts: 6
Joined: Thu Mar 23, 2017 6:42 pm

Android app creation: Error durring package check before ins

Post by patrickz22 »

Hello,

I would like to test a very basic code, only a Window with a form.

To create a web app, there is no problem.

The Android app creation looks like successful, but when I want to install the APK I have the following message (in French) :
Erreur d'analyse
Un problème est survenu lors de l'analyse du package.
Which could be approximately translated with:
Check error
A problem occurred while checking the package
And I cannot do anything else than taping OK to close it and not install my APK.

I don't see why but this is my code in the case it could be useful:

Code: Select all

Enumeration Fenetre
  #Fenetre_Principale
  #Fenetre_Resultat
EndEnumeration

Enumeration Elements
  #Label_Utilisateur
  #Edit_Utilisateur
  #Label_Passe
  #Edit_Passe
  #Bouton_OK
  #Bouton_Annuler
  #Texte_Resultat
EndEnumeration

Procedure Fermeture()
  CloseWindow(EventWindow())
EndProcedure

If OpenWindow(#Fenetre_Principale, #PB_Ignore, #PB_Ignore, 700, 60, "Identification", #PB_Window_Background|#PB_Window_TitleBar)
  TextGadget(#Label_Utilisateur, 0, 0, 280, 20, "Nom d'utilisateur :")
  StringGadget(#Edit_Utilisateur, 300, 0, 400, 20, "")
  GadgetToolTip(#Edit_Utilisateur, "Nom d'utilisateur")
  TextGadget(#Label_Passe, 0, 20, 280, 20, "Mot de passe :")
  StringGadget(#Edit_Passe, 300, 20, 400, 20, "", #PB_String_Password)
  GadgetToolTip(#Edit_Passe, "Mot de passe")
  ButtonGadget(#Bouton_OK, 200, 40, 50, 20, "OK")
  ButtonGadget(#Bouton_Annuler, 250, 40, 200, 20, "Annuler")
  BindEvent(#PB_Event_Gadget, @Fermeture(), #Fenetre_Principale, #Bouton_Annuler)
  BindEvent(#PB_Event_CloseWindow, @Fermeture())
EndIf
I installed JDK 8 32-bits on Windows 7 64-bits and configured the path in the SpiderBasic IDE.

I hop I provided all needed information.

Thanks.
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Android app creation: Error durring package check before

Post by Peter »

perhaps this is useful for you:

http://forums.spiderbasic.com/viewtopic ... 3302#p3302

Greetings ... Peter
patrickz22
Posts: 6
Joined: Thu Mar 23, 2017 6:42 pm

Re: Android app creation: Error durring package check before

Post by patrickz22 »

Peter wrote:perhaps this is useful for you:

http://forums.spiderbasic.com/viewtopic ... 3302#p3302

Greetings ... Peter
Thanks, you're near the good answer!
I found the solution in the post you indicated to me.

I had to sign the APK to be able to install it.
My preview search might have been insufficient, thanks for your answer.
Post Reply