Problem with create apk

97 views
Skip to first unread message

Omer Meshy

unread,
Nov 25, 2019, 11:51:39 PM11/25/19
to DroidScript
Hello
I gave a problem with the apk builder.
When I try to install the my app as an apk I get an error that it can't be be downloaded because there is an error.
I tried to install the apk file on another device and it gave the same error.

How can I fix it?

Omer Meshy

unread,
Nov 25, 2019, 11:55:26 PM11/25/19
to DroidScript
I get an error (not gave)

Omer Meshy

unread,
Nov 26, 2019, 12:03:05 AM11/26/19
to DroidScript
Actually it happens only with a specific app.
מדא כלים לשטח.spk

Brad Yoch

unread,
Nov 26, 2019, 12:48:50 AM11/26/19
to DroidScript
Nothing came in the spk but a blank file with no file extension.
/sdcard/DroidScript/מדא כלים לשטח/get_data_from_f

Omer Meshy

unread,
Nov 26, 2019, 1:16:31 AM11/26/19
to DroidScript
Try this one
מדא כלים לשטח.spk

Brad Yoch

unread,
Nov 26, 2019, 1:28:16 AM11/26/19
to DroidScript
Still same problem

Brad Yoch

unread,
Nov 26, 2019, 2:15:18 AM11/26/19
to DroidScript
I dont know what you mean by pure form.

Omer Meshy

unread,
Nov 26, 2019, 4:33:36 AM11/26/19
to DroidScript
I use a few plugins. Maybe one of them makes the problem?
Screenshot_20191126-113140.jpg

Brad Yoch

unread,
Nov 26, 2019, 4:47:23 AM11/26/19
to DroidScript
My file explorer shows 0 byte file size with no file extension inside the only folder I can't find inside he DroidScript App.
Screenshot_2019-11-26-04-42-39.png
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Omer Meshy

unread,
Nov 26, 2019, 3:22:34 PM11/26/19
to DroidScript
Dave/Steve/Symbroson, can you help me?
something is very weird. When I send the spk to another device and open it on DS it does not appears. When I try to build an apk it says that there is an error with that apk file. When I tried to send the spk to this forum Brad said that he cant see the files.
As I said before, I use a few plugins and the problem is specifically on this app.
 
Please help me

Steve Garman

unread,
Nov 26, 2019, 3:38:30 PM11/26/19
to DroidScript
I see exactly the same thing as Brad.

Are you creating the spk using the "Save SPK" option in DroidScript?

If you try to create it any other way, it will probably include .js files which the forum does not accept and it may strip them out.

Is this the only project that has been created using a rtl language? I have no experience of creating APKs with those files so do not know if that causes problems.


Steve Garman

unread,
Nov 26, 2019, 3:45:03 PM11/26/19
to DroidScript
If Firebase2Demo is the plugin I think it is, I would not be at all surprised to learn it is deliberately trying to prevent users creating APKs.

I have no evidence for that as I have not tested it and do not intend to install it.

Message has been deleted

Omer Meshy

unread,
Nov 26, 2019, 4:04:18 PM11/26/19
to DroidScript
I tried to remove this plugin and all the code of it but it still does give the error.
After I build the apk I tried to install it but it gived me this message: A problem occurred in the packet processing.

Steve Garman

unread,
Nov 26, 2019, 4:21:28 PM11/26/19
to DroidScript
So back to the other questions I asked above.

Are you creating the SPK using the "Save SPK" option in DroidScript?

Is this your only project that has been created using a rtl language?

Omer Meshy

unread,
Nov 27, 2019, 12:03:34 AM11/27/19
to DroidScript
Yes, I use the build in option.
About the language, I tried to rename it to English name but it still gave me the same error.

In the app there are Hebrew (rtl) text but I made a lot of applications with rtl languages and I have never got an error.

Omer Meshy

unread,
Nov 28, 2019, 10:22:12 AM11/28/19
to DroidScript
Can you help me please?

Steve Garman

unread,
Nov 29, 2019, 12:37:01 PM11/29/19
to DroidScript
You need to either get a working spk or tell us much more about the app

Omer Meshy

unread,
Dec 4, 2019, 11:52:54 PM12/4/19
to DroidScript
What else do you need to know about the app?

Steve Garman

unread,
Dec 5, 2019, 2:42:21 PM12/5/19
to DroidScript
The only things we know about the app are that the project has a name in Hebrew and it uses some plugins so it is hard to guess what we need to know.

You could start with the basics. Is it a native app or html?

Since it cannot create an spk it would help if you describe the directory structure and what file names make up that structure.

What is the purpose of the app?

Is it built fro scratch with DroidScript or have you included files from other sources?

Give us some idea of what the app is like and we may be able to ask specific questions.

Brad Yoch

unread,
Dec 6, 2019, 2:27:11 AM12/6/19
to DroidScript
Measure a tool for the area
Is the translation Google gave me.

Brad Yoch

unread,
Dec 6, 2019, 2:35:07 AM12/6/19
to DroidScript
New translation
מדא כלים לשטח hebrew to
english Make tools for the field

Steve Garman

unread,
Dec 6, 2019, 4:18:07 AM12/6/19
to DroidScript
Attached is peace.spk
If I install that, it works fine.

I then create a blank app "שלום" and paste the code from the peace into it. That works too.

However, I can create a valid spk from peace but not from שלום

I suspect the apkbuilder suffers from the same problem encoding problem corrupting the apk.

This may not be the only problem with your app but I would be interested to hear whether you can build an apk from any app with a Hebrew name.

My testing has been done on a version of Android set to use English.

I recommend for the time being you try a version of your code which uses an English app name and, if that doesn't fix it, with only ltr file names too.
peace.spk

Omer Meshy

unread,
Dec 6, 2019, 4:07:52 PM12/6/19
to DroidScript
1. My app developed only in ds but I used a few plugins.
2. My app is a regular app (not include html).
3. The directory of the app un ds is the regular directory.
4. I have some files name in Hebrew (rtl).
5. The purpose of the app is to help volunteers in our rescue service. The app create files in the device and save the info that the user writes.
6. I also tried to create a new project (that contain the same code and files) and I jast chaged the Hebrew name to the translation in English and it succeed to build the apk file but the apk installer gave me an error "An error occurred while parsing the package".

I attach the spk file with the English name.

About your question, If I try to create an apk with a Hebrew name DS gaves an error "Bad Password or key file".
Tools[1].spk

Steve Garman

unread,
Dec 6, 2019, 4:33:23 PM12/6/19
to DroidScript
According to that spk you have a native app called Tools that does not have a top-level file Tools.js

Is that the case?

Omer Meshy

unread,
Dec 7, 2019, 2:38:09 AM12/7/19
to DroidScript
Actually the main file (Tools) is missing in that spk. I don't know why but maybe this is the reason for the problem but I don't know how to solve it.

Omer Meshy

unread,
Dec 7, 2019, 11:57:03 PM12/7/19
to DroidScript
Can you help me to solve this problem please?

Omer Meshy

unread,
Dec 9, 2019, 11:55:30 PM12/9/19
to DroidScript
Steve do you know what is the problem with that?

Omer Meshy

unread,
Dec 21, 2019, 4:37:40 AM12/21/19
to DroidScript
Hello guys,
I finally find what made that error. I called to an image in a Hebrew name (rtl).
I repeat again, you have to support rtl languages. I know this is a lot of work, but it is very necessary.
Reply all
Reply to author
Forward
0 new messages