Porque el programa de instalación de un paquete se detiene??

152 views
Skip to first unread message
Assigned to ewpa...@gmail.com by ghica.va...@gmail.com

Yael Jimenez Rodriguez

unread,
May 1, 2019, 12:50:43 PM5/1/19
to MIT App Inventor Forum
Hola, oigan de pura casualidad no saben porque el programa de instalación de un paquete se detiene? Ya termine mi aplicación y supuesta mente esta bien hecha la programación. Cuando ya escaneé la aplicación todo es normal, pero cuando me aparece la opción de instalar la aplicación me una notificación que dice: "Lo sentimos. La aplicación Programa de instalación del paquete se detuvo". Esta así desde ayer y no se que hacer, ayúdenme por favor es urgente.

TimAI2

unread,
May 1, 2019, 1:01:49 PM5/1/19
to MIT App Inventor Forum
Could be anything (we do not know, you have not posted any relevant blocks, system information or a project aia)

Large images, especially app icon
Empty blocks
Indefinite looping code
Problems with your computer OS or the Android system on the phone
Untrusted sources not checked
and so on

More information please :)

SteveJG

unread,
May 1, 2019, 1:02:27 PM5/1/19
to MIT App Inventor Forum
Did you change the app icom from default to something else.   The appIcon should be a png or jpg image no larger than 96x96 pixels height/width.

That could be a quick fix.

This is urgent.  Then you should have provided a Block image of your Project blocks here in the Forum.  You got the error message because SOMETHING is wrong with your Blocks but we cannot see you blocks so you have to help.   Your Project may be larger than 10 Mb or lots of other things which could also give you frustration.

Regards,
Steve

Yael Jimenez Rodriguez

unread,
May 1, 2019, 2:42:13 PM5/1/19
to MIT App Inventor Forum
Acabo de subir la aplicación a mi galería, por favor revísenlo, búsquenlo como Push! yael.rod.02 y cualquier singularidad informelo, por favor

TimAI2

unread,
May 1, 2019, 3:02:18 PM5/1/19
to MIT App Inventor Forum
You have several variables that are not recognised:

"Resultado" on Screen "Inicio"

"otro" and "eleccion" on screens "Bichos" and "Soldados"

You are also not switching screens correctly, which will cause a memory leak and your app will crash

Use different screens wisely

If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while...      
The recommended method of switching screens in App Inventor
(Thanks Taifun)

Also see demo: multiscreen.aia

If you haven't done it already....



Yael Jimenez Rodriguez

unread,
May 7, 2019, 11:53:22 AM5/7/19
to MIT App Inventor Forum
Hola, oye TimAI2 ya hice los métodos que me sugeriste con varias pantallas y con una pantalla, pero se detiene la aplicación y no la ejecuta. Hice tres aplicaciones y las publique en mi galería, revisalas por favor búscalas como Push! yael. Ya no se que hacer por favor ayúdenme

Ghica

unread,
May 8, 2019, 9:56:39 AM5/8/19
to MIT App Inventor Forum
Hi Yael,
(I looked at version 3)
First of all, there are many errors (red circles with crosses in them). Solve these!!
Next, you have too many clocks. They all fire at the same time and will start interfering with each other.
And, there is lots of room to improve your code with procedures that have input variables, which are the sprites and the canvases. You can use the any blocks to work with these.
Maybe I will post an example later.
Cheers, Ghica

Ghica

unread,
May 8, 2019, 11:22:01 AM5/8/19
to MIT App Inventor Forum
Hi Yael,
The errors are probably because a change of language of the blocks to English. That is maybe an AI problem, but easy to solve in your app.
Now, Look at this:

Snap23.png

Where, instead of 

Snap24.png

you could

Snap25.png

or instead of call Proce_Tropa,

Snap26.png

I think you can delete some 15 procedures in this way.
Similarly:

Snap27.png

You can combine Si_Visible and No_Visible into one procedure Set_Visible with an input variable.
Do this and you will get rid of at least half of your blocks. Then look at all those clocks and/or report back here.
Cheers, Ghica.

Yael Jimenez Rodriguez

unread,
May 9, 2019, 1:59:06 PM5/9/19
to MIT App Inventor Forum
Hola, hice otra aplicación que solamente contiene el modo de juego de los bichos, sintetizando los relojes y procedimientos. Pero sigue el mismo problema del principio, no me lo ejecuta la aplicación en el teléfono, ¿Porque no me la ejecuta?. Ya la publique en mi galería, revísenla.

Ghica

unread,
May 10, 2019, 9:15:38 AM5/10/19
to MIT App Inventor Forum
Maybe you could ask *politely* to review it? We are offering our free time to do it.
And, to make it possible to find your app, please post a link to the right Gallery app!
Cheers, Ghica.

Yael Jimenez Rodriguez

unread,
May 10, 2019, 11:10:04 PM5/10/19
to MIT App Inventor Forum
Hola, Ghica perdón por mi forma de expresar, la verdad estoy muy desesperado del porque esta aplicación no me agarra y se me olvido compartir el enlace de la aplicación. 

El enlace es ai2.appinventor.mit.edu/?galleryId=6193367751458816 la aplicación es: Push!4 (Bichos).

Y se los pido nuevamente, ¡¡¡¡AYÚDENME, POR FAVOR!!!! y cualquier observación, critica, sugerencia, etc se los voy agradecer muchísimo. Gracias por todo lo que han hecho por mi, me ha hecho ver mis errores que ni yo mismo me daba cuenta. 

Saludos, Yael.

Ghica

unread,
May 11, 2019, 4:33:22 PM5/11/19
to MIT App Inventor Forum
Hi Yael,
So far I cannot see why your app stops when you build an .apk

I do see a whole lot of code that I do not understand.
I reworked your .Timer routine like this:

Snap25.png

The procedures I built with moving your blocks look like this:

Snap26.png


WHY? What is supposed to happen??


There are 32 statements like this:

Snap23.png

What is the purpose of this?? Does it ever happen that global Multi = 0??

Important question: does your app work as expected when you run it in the companion??
If no, please make it work in the Companion first!
If yes, please explain better what the app should do. And in that case I will look further (Maybe tomorrow).
Cheers, Ghica.

Ghica

unread,
May 12, 2019, 6:31:20 AM5/12/19
to MIT App Inventor Forum
Hi Yael, I have asked the other power users for help. Something strange is going on, which does not seem related to the really strange code you have in your app.
Cheers, Ghica.

TimAI2

unread,
May 12, 2019, 6:38:58 AM5/12/19
to MIT App Inventor Forum
You still have the undefined variables I mentioned in a previous post - fix that then see how things work .....

Ghica

unread,
May 12, 2019, 8:13:31 AM5/12/19
to MIT App Inventor Forum
Hi Tim,
That is a bug in AI. If you load an .aia in another language, the local variables are in the other language, but the event definition variables are not. (Evan has acknowledged this). You have to adapt that first. But if you do (no problems left), the .apk still cannot run.
Cheers, Ghica

TimAI2

unread,
May 12, 2019, 1:22:08 PM5/12/19
to MIT App Inventor Forum
I am sorry....

However the only two variables being defined at run time are:

Puntaje
Multi

no other variables are defined, regardless of translation, if they are not there they cannot be set or called (get) ?

Ghica

unread,
May 13, 2019, 5:13:13 AM5/13/19
to MIT App Inventor Forum
Hi Tim,
This is the bug in AI:

Snap23.png

Speaks for itself, I hope. You can correct it by changing "otro" to "other" everywhere, and similarly solve the other errors.
However, that does not help to make this app build-able.
Cheers, Ghica.

TimAI2

unread,
May 13, 2019, 6:05:38 AM5/13/19
to MIT App Inventor Forum
ahhhh ;)

Yael Jimenez Rodriguez

unread,
May 14, 2019, 11:07:27 AM5/14/19
to MIT App Inventor Forum
Hola Ghica, ya hice los procedimientos que me dijiste, actualice la ultima app, pero sigue igual. Gracias por el apoyo, ¿te han dicho algo los usuarios avanzados acerca de la aplicación? cualquier singularidad díganme por favor.

Saludos 

Ghica

unread,
May 15, 2019, 5:59:54 AM5/15/19
to MIT App Inventor Forum
There was a forum problem, but it is solved now, and I have assigned this to someone from MIT.
Cheers, Ghica.


Yael Jimenez Rodriguez

unread,
May 20, 2019, 11:12:56 AM5/20/19
to MIT App Inventor Forum
Hola, oye Ghica ¿ha habido alguna noticia acerca de la aplicación? Cualquier noticia informenlo por favor

Saludos

Ghica

unread,
May 20, 2019, 3:18:01 PM5/20/19
to MIT App Inventor Forum
I did not hear anything. I will try to get some attention.
Cheers, Ghica

Evan Patton

unread,
May 20, 2019, 6:57:34 PM5/20/19
to MIT App Inventor Forum
Hi Yael,

After taking a look at your project, I expect that the issue is due to the PNG file you are using as the app Icon. It's 1176x1226 pixels, and at 4 bytes per pixel that means it's going to require 5.7 MB of memory alone to just render it. This often breaks either the package manager or the Android launcher. Try scaling the icon down to something more reasonable. For example, the largest icon size supported by Android at the moment (xxxhdpi) is 192x192 pixels (for a complete list of possible icon sizes, see this page).

Regards,
Evan

Ghica

unread,
May 21, 2019, 1:56:50 AM5/21/19
to MIT App Inventor Forum
Hi Evan, thanks. Sorry I did not think of this!
Cheers, Ghica

Evan Patton

unread,
May 21, 2019, 8:53:39 AM5/21/19
to MIT App Inventor Forum
No worries Ghica. I also have it as an item on my todo list to make it so that the icons are automatically scaled to values appropriate to Android (and iOS), so one day this won't be an issue any more.

Cheers,
Evan

Yael Jimenez Rodriguez

unread,
May 22, 2019, 12:11:45 PM5/22/19
to MIT App Inventor Forum
Hola Evan, gracias por el consejo del icono no me había dado cuenta, pero sigue sin abrir la aplicación, ya actualice la aplicación de mi galería, por si quieren verificarla. Gracias de todos modos, pero ¿alguna otra sugerencia de para que abra la aplicación? Agradeceria mucho su apoyo.

Saludos Yael

Evan Patton

unread,
May 22, 2019, 3:17:41 PM5/22/19
to MIT App Inventor Forum
Hi Yael,

Do I need to use the same Gallery URL or did you publish to a different URL?

Regards,
Evan

Yael Jimenez Rodriguez

unread,
May 27, 2019, 11:28:50 AM5/27/19
to MIT App Inventor Forum
Hola Evan, perdon por no haber contestado. Si es la misma, de todas maneras la dejo aqui: 


Saludos Yael

Evan Patton

unread,
May 29, 2019, 4:37:47 PM5/29/19
to MIT App Inventor Forum
Hi Yael,

I was able to fix the problem. I have emailed you a corrected AIA file that should compile and run. Please let me know once you are able to test it whether or not it works for you.

Cheers,
Evan
Reply all
Reply to author
Forward
0 new messages