It is currently Sun Mar 26, 2017 3:51 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Compiler freeze in Android Nougat
Unread postPosted: Sat Oct 08, 2016 8:31 am 
Offline

Joined: Tue Sep 20, 2016 11:45 am
Posts: 18
I love Basic!
And i bought Basic Compiler.
My Phone updated to 7.0 Nougat,
And compiling process freeze in "Packaging KO!"
Could You please fix this ?
In the Marshmellow it was work without Problem.


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Sat Oct 08, 2016 10:06 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5448
Location: Paris, France
Hello Hamdiozkan, I moved your question in another topic, please do not hijack Sinagawa's topic (which is a different problem).

What is your phone brand and model ?

I am afraid I cannot "fix this", just by snapping my fingers :)
I would need a phone under Android Nougat which I do not have.

I would need more info: what do you call a "compiling process freeze" ?
Does the app become non-responsive ? (you click anywhere and it doesn't answer)
What is the exact error message after "Packaging KO!" (if there is one?)
Can you check the content of the folder in sdcard/rfo-compiler/data/<your-app-name> ?
Is there a file called "classes.dex" anywhere in sdcard/rfo-compiler or one of its subfolders ?

Thanks for your feedback,
Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Mon Oct 10, 2016 1:34 pm 
Offline

Joined: Tue Sep 20, 2016 11:45 am
Posts: 18
Hello,
Sorry for writing, under another topic.

"Compiler process freezing"
This mean , its stops, and waits...
If i press the android "back" button it closes, and if i activate again Compiler window from menu, Compile app starts from scratch.

it has no error message, only yellow exclamation symbol over the android body and stopped

I checked and searching with file explorer the content of the folder sdcard/rfo-compiler/data/<my-app-name>
i found "classes.dex" in sdcard/rfo-compiler/data

in the <my-app-name> folder ;
<file> AndroidManifest.xml
<folder> res
<folder> libs
<folder> assets
<folder> bin


I add a screenshot for you,
My phone is General Mobile 5 Plus D

Could you please install Android Nougat 7.0 on Android Studio and fixing for Nougat ? , and maybe you can prepare seperated version for Nougat..
Because this wonderful application needs this compatibilitiy in near future, not only for me..
http://www.teamandroid.com/2016/08/27/install-android-70-nougat-emulator-android-studio/

Maybe this is not related with Android version.. i dont know ...

I am ready for testing , beta versions...

Thanks


Attachments:
Screenshot_20161010-232557.png
Screenshot_20161010-232557.png [ 323.39 KiB | Viewed 575 times ]
Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Fri Oct 14, 2016 11:20 pm 
Offline

Joined: Tue Sep 20, 2016 11:45 am
Posts: 18
Any news ??

thanks,


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Fri Oct 14, 2016 11:30 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5448
Location: Paris, France
Hello Hamdiozkan, sorry it seems I missed your previous answer.

I have never used Android Studio. I tried to install it but failed, it's very possible my computers are too old and weak to make it run properly.

I'll try to find a workaround to be able to get a Nougat simulator.
In the meantime if you have the possibility to install one don't hesitate to test the Compiler and send me logs of what's happening.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Fri Oct 14, 2016 11:37 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5448
Location: Paris, France
Other questions that could help solve your problem:

- have you tried compiling a simple program ? do all the programs get that error ?

- have you tried compiling the same program on another phone ? does it compile ?

- can you send me the .rfo file corresponding to your project, present in sdcard/rfo-compiler ?

Thanks,
Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Mon Oct 17, 2016 11:27 pm 
Offline

Joined: Tue Sep 20, 2016 11:45 am
Posts: 18
Hello mougino ,

Answers

- have you tried compiling a simple program ? do all the programs get that error ?
Yes i have tried many programs, all of tried *.bas get that error.

- have you tried compiling the same program on another phone ? does it compile ?
Yes i have tried the same programs on Huawei phone with Kitkat (4.4.4), Compiling was finished without problem.
And i have tried the same programs on AMIDUOS emulator with Lollipop (5.0.1), Compiling was finished without problem.
And i have tried the same programs on REMIXOS emulator with Marshmallow (6.0.1) , Compiling was finished without problem.
i installed 7.0 Nougat x86 on VirtualBox but, it gives another error, i think its related with intel based chip emulations, not Arm..

- can you send me the .rfo file corresponding to your project, present in sdcard/rfo-compiler ?
Yes , i attached a simple program "TestApp", gives that error.

i record a little video during compiling process, that gives error.
https://drive.google.com/file/d/0B4ePY2tCizzcSkpGbDlwVzZSaGc/view?usp=sharing


Thank you ,


Attachments:
File comment: Zipped Project file and BAS files
TestApp.zip [695 Bytes]
Downloaded 6 times
Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Tue Oct 18, 2016 12:13 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5448
Location: Paris, France
Thanks.

I do not understand what is wrong... :(

The command called for packaging (step 6 of the compilation) is "aapt package -f". It should package the AndroidManifest.xml, res/ and assets/ folders into "temp-unsigned.apk".

If "temp-unsigned.apk" does not exist, I throw the error"Packaging Ko" along with the system logcat for the last command.

In you're case the logcat is empty, showing aapt did not throw any error. Yet, "temp-unsigned.apk" was not created!

Even stranger is that I call aapt before that, in step 3 of the compilation: command is "aapt package -m", it creates the file R.java based on the AndroidManifest.xml, the res/ and src/ folders. And in your case it worked without incident... :?

I really don't know what is happening here ! :oops:

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Tue Oct 18, 2016 12:42 am 
Offline

Joined: Tue Sep 20, 2016 11:45 am
Posts: 18
Hello,
Please do not despair ;)
I think you will solve problem..

In the Nougat, system wants permissions for writing file, for internal sdcard.
For writing internal sdcard, we must give permisson to installed apk.. But this is for only Apk itself.
If apk uses another componenets on background for writing temporary files, maybe Nougat system blocks it.
Because, we dont gave permissions contained scripts, components, Java commands, we gave only for apk..
Maybe you can use apk caches or dalviks, for temporary savings, not sdcards.
I am not expert, I dont know, i only thinking about this, maybe useful for you..

Thank You


Top
 Profile  
 
 Post subject: Re: Compiler freeze in Android Nougat
Unread postPosted: Tue Oct 18, 2016 1:27 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5448
Location: Paris, France
Yes I think you are very right, I just stumbled upon this Android Developer article about permission changes in Nougat:
https://developer.android.com/about/versions/nougat/android-7.0-changes.html#perm

I'm willing to make changes to the Compiler permissions, but I really need a Nougat phone to test my changes... :oops:
I can't issue a blind release with untested changes.

[edit] and oh God am I tired of constant changes by Google that break solutions that were perfectly working :evil:

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred