App not installed as package appears to be invalid

Just starting out? Need help? Post your questions and find answers here.
matalog
Posts: 14
Joined: Fri Dec 04, 2020 6:07 am

App not installed as package appears to be invalid

Post by matalog »

I have been following the How to create an android application thread, in the tips n tricks section of the forum, and can compile the example app, although when I copy it over to my phone, it always gives the error, "App not installed as package appears to be invalid.". I am trying to install it on a Samsung S20+. I have tried 3 versions of jdk 8u202,8u421 and 32 bit jdk1.8 I had from a while ago.

Is there anything I shoud be looking at to allow the app to install on the phone. This is the app I create https://www.dropbox.com/scl/fi/vb6vzri7 ... sid1s&dl=1
Quin
Posts: 118
Joined: Wed Nov 08, 2023 4:38 pm

Re: App not installed as package appears to be invalid

Post by Quin »

You might have to sign the APK. I did when trying to run my code on my Pixel. Here's a Stack Overflow post on how to do this.
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: App not installed as package appears to be invalid

Post by plouf »

if not signed, you MUST enable debugger !! otherwise it does not isntall

you can enable debugger in app compile
and immediatly close it with CloseDebugOutput() .. this makes a feeling like it has no debugger
Christos
matalog
Posts: 14
Joined: Fri Dec 04, 2020 6:07 am

Re: App not installed as package appears to be invalid

Post by matalog »

plouf wrote: Thu Jul 18, 2024 5:09 am if not signed, you MUST enable debugger !! otherwise it does not isntall

you can enable debugger in app compile
and immediatly close it with CloseDebugOutput() .. this makes a feeling like it has no debugger
Yes, that worked, I prefered to try this over installing 18gb of ADK. Thanks.

The program has a Spiderbasic splash screen when it has loaded, is there a way to have no splash screen, and just get straight into the program?

This is what I compiled:

Code: Select all

Enumeration
  #mf
  #mfFont
  #mfTime
EndEnumeration

Declare Start()
Declare ShowTime()

;No debug
CloseDebugOutput()

Start()

Procedure Start()
  
  LoadFont(#mfFont, "", 50)
  
  OpenWindow(#mf, 0, 0, 0, 0, "", #PB_Window_Background)
  TextGadget(#mfTime, 10, 100, 300, 50, "00:00:00")
  SetGadgetFont(#mfTime, FontID(#mfFont))
  
  AddWindowTimer(#mf, 0, 1000)
  BindEvent(#PB_Event_Timer, @ShowTime())
EndProcedure

Procedure ShowTime()
  Protected Time.s = FormatDate("%hh:%ii:%ss", Date())
  SetGadgetText(#mfTime, Time)
EndProcedure
Post Reply