[Build Error #5] #ERROR: Could not complete build because the source directory is inaccessible

I updated the Corona sdk to the latest stable and got build error #5. Now i am trying with

Version: 3.0.0
Build: 2016.2897 and I get the error below.

 

[Build Error #5]

#ERROR: Could not complete build because the source directory is inaccessible

I tried putting the project in another directory but I keep getting the same error.

I have no idea what to do and how to correct this.

Can someone please point me in the right direction.

Using Windows 8 on a 64bit machine.

Thanks

Ok try this,

1.put your project folder on your desktop folder

2.close corona fully

3.open corona

4.click the open button the main screen

  1. select your project on the desktop

  2. try building again

Thank your for your answer. I followed your steps above but the error is still there and I can not build the project.

Was it working before the lastest stable build?

Yes it worked before the stable build but I used a quite old stable build from Nov 18 2014

Have you tried the lastest daily build to make sure this bug has been patched?

No I haven’t. I will try it and report back if it works or not.

Thanks

Sorry I was wrong. I did try the latest build 2016.2897 and the error is still there.

I reinstalled the old CoronaSDK-2014.2468 and now it works again. The reason why I in the first place wanted to update

the sdk was that sound does not wok in the simulator but plays fine on the device. I guess I have to live with that until my project is done =).

 Thank you for your help Scott

First I would highly recommend you update to either 2830 or a later daily build. We are getting ready to release a new public build soon and you’re going to be over two years behind with bug fixes.

In those two years, we have fixed a ton of bugs around bad file names and directories. Here’s what I would like for you to do:

Update to 2830 (or later)

Try building the “Hello World” sample app.

Try building your app. There is now a console window with 2830 or later that has all of the build messages. Copy and paste the entire log and paste it in here. (Click on the console window, CTRL-A, CTRL-C then in your forum post, CTRL-V)

Capture a screen shot of the Corona SDK build screen just before you hit the build button (with your failing app). Please do not blur out any fields before posting. There is an option to attach a photo under the “More Reply Options” button beside the Post button.

Lets get this problem solved.

Rob

Ok thanks! Will try it on Monday morning.

Just reinstalled the latest Corona stable. Compiled the Clock example project for android and it works fine.

When I build my own project I get [Build Error #5]. There is no need to paste the console output since there is

nothing indicating what might be wrong other than the #5 error popup when contacting the Corona servers.

The screen just before the build is the regular login window, nothing strange there either.

Have no idea how to debug this?

Also tried it with the latest build 2016.2899 and then I get

[Build Error #5] #ERROR: Could not complete build because the source directory is inaccessible

No info in the console window.

Anybody out there that could point me in the right direction?

After some hours trying to find out on what Corona build version my project breaks, I finally found that

Build : 2015.2636 works fine and Build:2015.2637 fails and crashes without error message when trying to build for android so this seems to be the the highest build that I can currently work on.

If I go higher it either just crashes when I build for android and on other builds I get [Error #5] as described above.

At least I managed to update the Corona sdk with a year or so but it would be great to be able to update to the latest version.

Sorry that I cant provide any other debug info but the problem is that there is none other than described above at build time.

Would be thankful for any advice on updating to the latest sdk and the build error #5 issue

If you would like me to help you, then you need to help me with the things I asked.

2015.2636 is a very old build. We have fixed many bugs and added many important features including changes required by Apple and Google.

If you can use a later daily build or 2016.2830 and build our sample apps then the problem is in your code. The better error message: “Could not complete build because the source directory is inaccessible” hints at the problem. This is why I asked you to provide a screen shot of the build screen just before you hit the build button. I need to see every field in the form as it’s filled out.

Please go back to a newer build. Also, you can try swapping out your build.settings for the build.settings in one of our sample apps too as a test to rule out issues with build.settings. But given the message, I suspect it’s something in the build window that’s causing the problem.

Rob

Hi Rob, Sorry for the delay! Just got back from vacations and the issue is still there. I’ve tried basically everything without results.

Now running build 2016.2915.

I can run the samples without problem even using my own keys so yes the problem is probably on my side but by now

the app is fairly big and there is nothing indicating what could be wrong. Would really appreciate some help on this one.

Thanks

build_form.png

================ build settings ===========================================
settings = {
    
    orientation = {
        default = “portrait”,
        supported = { “portrait”, }
    },
    

    
 android =
    {
        versionCode = “10”,
        usesPermissions =
        {
            “android.permission.INTERNET”,
            “android.permission.WRITE_EXTERNAL_STORAGE”,

        },
    },
}
 

Have you tried logging out of corona and logging back in

Can you verify that your Save To folder actually exists?  Also the first character looks like a “b”, but it has an odd slant to it like it might be a UTF-8 character. We handle UTF-8 pretty well, but I don’t know how well Windows handles them in file/folder names. Try making your output folder using ASCII only letters and see if that has any affect on the issue.

Rob

Yes the folder exists and I have tried to change names with only ascii chatacters etc but it doesn’t work.

Game is running fine in the simulator but I cant build for android. I have also tried logging out and in again.