Getting error msg when compiling.

nypaulie

Active Member
Licensed User
Longtime User
I recently made some changes to some of my directories and now when I try to compile and run my already successfully written programs (as a test) I get this message:

an error occurred.
UNEXPECTED TOP-LEVEL ERROR:
java.io.IOException: The parameter is incorrect
at java.io.FileOutputStream.writeBytes(NativeMethod)
at jave.io.FileOutputStream.write(FileOutputStream.java:305
at com.android.dx.command.dexer.Main.run(Main.java:240)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)

Do I need to re-install B4A? Is it java that needs re-installing? Is there an easier fix?
Thanks.
 

nypaulie

Active Member
Licensed User
Longtime User
Try Tools - Clean project.

Which directories have you changed?
Thanks Erel,
I will try that. I changed the directory that stored the project files.
[Added Later] - Trying Tools - Clean project didn't appear to help. When I try to compile & run (background) I get the same error.
Re-install time do you think?
[Added Still Later] - I reinstalled Android SDK Tools, but still got error.
I then uninstalled/reinstalled B4A and am still getting error.
 
Last edited:
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
Select debug from the drop down list in the IDE. Then try to compile and see the B4A line number that it shows is giving the error. Post that B4A code here.
When I run compile - debug I get no specific line listed, but do get the exact same error msg I posted previously. I've been using VBox (within Linux) to run B4A so I rebooted into WinXP and ran the project without any problems so I think it really is my VBox installed B4A. Funny thing though is that I've already tried reinstalling B4A, Android-SDK and the Java package but the prob persists. I'm at a loss as to what to try. Completely reinstall the VBox WinXP? That means having to reinstall all the many apps I have here. Oh well, it's Thanksgiving, so I should be happy that this is my only problem and just relax... eat too much... and yes, have a few stiff drinks. Thanks to all and Happy Thanksgiving!!!
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
SOLVED! (Error when compiling.)

Turns out the directory I was using to store my .b4a project files in was corrupt. Anything I tried to compile using files from this folder gave me that error msg I posted. When I tried using projects saved to any other folder I had no probs, so I dumped that directory and even though I have to redo some work I am home free. Thanks a bundle for your help!
 
Upvote 0
Top