Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 22-Apr-2020 06:43:36

teacherone
Member
Registered: 5-Apr-2017
Posts: 36

there was a problem parsing the package android

when I try to install apk to my android phone(sony xperia xz),it shows the error information "there was a problem parsing the package android" please help me solve this problem

Offline

#2 22-Apr-2020 08:36:45

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: there was a problem parsing the package android

Hello,

What are the settings you choose during the export ?
try the default architecture (all) and make a key for the app

Offline

#3 22-Apr-2020 12:04:45

teacherone
Member
Registered: 5-Apr-2017
Posts: 36

Re: there was a problem parsing the package android

arkeon wrote:

Hello,

What are the settings you choose during the export ?
try the default architecture (all) and make a key for the app

dear arkeon:
I try to make key ,but it show the erro information , so I install java jdk and use command
"C:\Program Files\Java\jdk1.8.0_131\bin\keytool" "-genkey" "-v" "-keystore" "appkey.keystore" "-alias" "ARapp" "-keyalg" "RSA" "-keysize" "2024" "-validity" "1000"
  to generate appkey.keystore
then I can export the project to apk file.
and use the command
copy "c:\OS3D_portable_x64\OpenSpace3D\easypart\appkey.keystore" "C:\Program Files\Java\jdk1.8.0_131\bin\appkey.keystore"
copy "c:\OS3D_portable_x64\OpenSpace3D\test\export\android_all\1\bin\1.unsigned.apk" "C:\Program Files\Java\jdk1.8.0_131\bin\1.unsigned.apk"
"C:\Program Files\Java\jdk1.8.0_131\bin\jarsigner.exe" "-verbose" "-sigalg" "SHA1withRSA" "-digestalg" "SHA1" "-keystore" "C:\Program Files\Java\jdk1.8.0_131\bin\appkey.keystore" "C:\Program Files\Java\jdk1.8.0_131\bin\1.unsigned.apk" "ARapp"
then use the command
"c:\OS3D_portable_x64\androidDeployerTools\zipalign.exe" "-v" "4" "c:\OS3D_portable_x64\androidDeployerTools\1.unsigned.apk" "c:\OS3D_portable_x64\androidDeployerTools\ARapp.apk"


and copy to my smartphone to install ,however it shows error.
it can work at openspace3d1.82 but 1.83 will export the apk file instead unsigned.apk
so I can`t install to my smartphone
this is the error picture
https://drive.google.com/file/d/1Y4tU0_ … sp=sharing
please help me solve the problem, thank you!

Last edited by teacherone (22-Apr-2020 12:19:28)

Offline

#4 22-Apr-2020 14:39:55

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: there was a problem parsing the package android

Hello,

OpenSpace3D do all that for you.
you just need to export the apk file with all platforms, then check install to connected device.
It will sign and copy install the apk on your phone.

The generated apk is already signed.

If you have an error when generating keystore / apk you need an internet connexion to make it work to validate the key timestamp.

Offline

#5 22-Apr-2020 14:42:44

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: there was a problem parsing the package android

Try to generate the keyfile with english characters and use TW or CN for country value.

Offline

#6 22-Apr-2020 15:25:55

teacherone
Member
Registered: 5-Apr-2017
Posts: 36

Re: there was a problem parsing the package android

dear arkeon:
I try with english characters ,but still show error
it shows
Exception in thread "main" java.lang.ExceptionInInitalizerError
at sun.nio.fs.WindowsFileSystem.<init>(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.<init>(Unknown Source)
at sun.nio.fs.DefaultFileSystemprovider.create(Unknown Source)
.........

the error message
https://photos.app.goo.gl/wmeaPPjTM2mP27d89

Offline

#7 23-Apr-2020 09:19:52

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: there was a problem parsing the package android

Weird ^^
Please try by disabling antivirus / firewall

you can find the android tools from here C:\Program Files\Scol Voyager\androidDeployerTools
or ./androidDeployerTools for portable version.
Maybe you can try to update some files from the version installed on your computer. maybe it don't like the OS with Chinese language. But it seems to work for computers in Russian so I'm not sure of the issue.

Offline

#8 23-Apr-2020 15:27:22

teacherone
Member
Registered: 5-Apr-2017
Posts: 36

Re: there was a problem parsing the package android

arkeon wrote:

Weird ^^
Please try by disabling antivirus / firewall

you can find the android tools from here C:\Program Files\Scol Voyager\androidDeployerTools
or ./androidDeployerTools for portable version.
Maybe you can try to update some files from the version installed on your computer. maybe it don't like the OS with Chinese language. But it seems to work for computers in Russian so I'm not sure of the issue.

dear arkeon:
  Thank you for the idea,it help me to find a way to solve this problem,
but I`m still to test it .  thanks again!

Offline

#9 24-Apr-2020 14:55:56

teacherone
Member
Registered: 5-Apr-2017
Posts: 36

Re: there was a problem parsing the package android

dear arkeon:
   one of my friend solvethe problem by put chartsets.jar to \androidDeployerTools\lib\
and everything turn right.
hope it will help!

Offline

#10 24-Apr-2020 15:56:03

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: there was a problem parsing the package android

hmm good catch I will add this for next release
thanks

Offline

Board footer

Powered by FluxBB