N nypaulie Active Member Licensed User Longtime User Nov 20, 2012 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2012 #2 Try Tools - Clean project. Which directories have you changed? Upvote 0
N nypaulie Active Member Licensed User Longtime User Nov 20, 2012 #3 Erel said: Try Tools - Clean project. Which directories have you changed? Click to expand... 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: Nov 20, 2012 Upvote 0
Erel said: Try Tools - Clean project. Which directories have you changed? Click to expand... 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.
margret Well-Known Member Licensed User Longtime User Nov 20, 2012 #4 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. Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2012 #5 Can you upload your project (or send it to me by mail)? Upvote 0
N nypaulie Active Member Licensed User Longtime User Nov 22, 2012 #6 margret said: 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. Click to expand... 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
margret said: 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. Click to expand... 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!!!
N nypaulie Active Member Licensed User Longtime User Nov 22, 2012 #7 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
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!