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

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.

What verision of Windows are you running?

Since you can build sample apps like HelloWorld, can you copy your app’s build.settings to the HelloWorld sample and try and build it? We are thinking there is some bad character somewhere (build.settings, folder path, project name, etc.) that’s tripping things up. This will be one test to verify it.

If that works, then try changing the name of the sample to match your project name and package name to rule out those problems.

If that fails, then we would like you to turn on more debugging. We have four debug levels 0-3. 0 is normal, 3 dumps a lot of data, so you might want to try 1 or 2 first.

On Windows open a command shell (cmd.exe) and type in this command:

reg ADD “HKEY_CURRENT_USER\Software\Ansca Corona\Corona Simulator\Preferences” /f /v debugBuildProcess /d 2

To return your app to normal debugging messages change the 2 to 0 at the end.

Also try using a known directory like Desktop to output the build to. Make sure to use the “Browse” button and select it from the finder.

Rob

Engineering says there should more to the error message and that there should be the path it says it can’t attach to. Can you post the entire console log:   CTRL-A CTRL-C in the console windows, and CTRL-V here?

Thanks

Rob

Thanks for the feedback!

  1. Copying my build.settings to the HelloWorld sample works just fine and the apk is sent back without errors.

  2. Changing the HelloWorld project name, package name etc to to match my project also compiles just fine.

  3. I set the debugging to 3 but I can’t see why that would help since the game is running fine when played in the sim and no errors are being displayed. The problem occurs when trying to build. (see below) and no more information is displayed.

error.png

======== Here is the full console output after starting my app and then trying to build the apk (xxx) is changed by me manually before posting it here ==========

10:30:55.309  exit
10:30:55.351  
10:30:55.351  Copyright © 2009-2016  C o r o n a   L a b s   I n c .
10:30:55.351      Version: 3.0.0
10:30:55.351      Build: 2016.2915
10:30:55.351  Platform: GT-I9300 / x64 / 10.0 / GeForce GTX 660 Ti/PCIe/SSE2 / 4.5.0 NVIDIA 358.91 / 2016.2915 / en_US | US | en_US | en
10:30:55.351  Loading project from:   D:\git\casanova\xxx
10:30:55.351  Project sandbox folder: C:\Users\glenn\AppData\Local\Corona Labs\Corona Simulator\Sandbox\xxx-699FB75089C81E187832E4437B990DDC\Documents
10:30:55.351  
10:30:55.351  
10:30:55.351  ################################################ START ######################################################
10:30:55.351  #############################################################################################################
10:30:55.351  
10:30:55.351  
10:30:55.351  
10:30:55.351  
10:30:55.351  ######> GT-I9300 <--     width:720 height:1280
10:30:55.351  ######> device ratio => 0.5625
10:30:55.351  ######> AppName --> xxx
10:30:55.351  ######> image scale factor --> 1.3333333333333
10:30:55.351  ######> using low-res images for this device = true
10:30:55.392  – Controller –
10:30:55.392  – Model –
10:30:55.392  :: WARNING WARNING!!! LOGIN IS DISABLED IN Main.lua ::
10:30:55.392  
10:30:55.392  ######> APPLICATION => xxx_v1.0_android
10:30:55.392  
10:30:55.392  ######> APPLICATION VERSION => 1.0
10:30:55.392  
10:30:55.392  ######> MOBILE_API => LIVE
10:30:55.392  ######> APPLICATION WEBSITE => http://xxx.com
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> APPLICATION HTTPS WEBSITE  => http://xxx.com
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> APPLICATION LOGIN URL => http://xxx.com/mobile_login
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> APPLICATION LOGOUT URL => http://xxx.com/mobile_logout
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> APPLICATION RECAP PASSWORD URL => http://xxx.com/mobile_request_new_password
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> APPLICATION RECAP PASSWORD EMAIL TEMPLINK URL => https://xxx.com/collect_new_password
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> CHECKING SCOREBOARD ACCESS => http://xxx.com/mobile_check_scoreboard_access
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> CHECKING SCOREBOARD POST (INSERT) URL => http://xxx.com/mobile_insert_to_scoreboard
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> SCOREBOARD VISIT URL => https://xxx.com/scoreboard
10:30:55.392  
10:30:55.392  
10:30:55.392  ######> PUSH MESSAGES URL => http://xxx.com/mobile_check_push_messages
10:30:55.392  
10:30:55.392  
10:30:55.392  – NetworkHandler –
10:30:55.392  – TriggerHandler –
10:30:55.392  ======= DebugVars initiiaded =======
10:30:55.392  === initializing Database casanova.db ===
10:30:55.392  :: DATABASE >  checking EditorMode => false
10:30:55.392  :: DATABASE >  checking EditorMode => false
10:30:55.392  :: DATABASE >  casanova.db EXISTS IN DOCUMENTS.DIR ======> true ::
10:30:55.392  C:\Users\glenn\AppData\Local\Corona Labs\Corona Simulator\Sandbox\xxx-699FB75089C81E187832E4437B990DDC\Documents\casanova.db
10:30:55.392  CREATE TABLE IF NOT EXISTS gameSettings (id INTEGER PRIMARY KEY, level INTEGER, score INTEGER);
10:30:55.392  CREATE TABLE IF NOT EXISTS strokePaths (id INTEGER PRIMARY KEY, idWoman INTEGER, lifeTime NUMBER, speed NUMBER, points TEXT);
10:30:55.392  CREATE TABLE IF NOT EXISTS scoreBoard (id INTEGER PRIMARY KEY, points INTEGER, alias TEXT);
10:30:55.392  
10:30:55.392  :: IS USER RUNNING APP FOR THE FIRST TIME? => 0
10:30:55.392  
10:30:55.392  
10:30:55.392  >> WARNING! WARNING! APP IS IN DEBUG MODE IS_LIVE = FALSE REMEBER TO CHANGE BEFOR LIVE COMPILATION <<
10:30:55.404  DATABASE QUERY OK
10:30:55.404  :: ProgressMeter:init() ::
10:30:55.404  :: SliderBubble init() ::
10:30:55.404  :: PerfectHandler init() num perfects to reach bonus slider is ::> 5
10:30:55.404  
10:30:55.404  
10:30:55.404   |||||||||||||| AUDIO  RESUME ||||||||||||||
10:30:55.404  ##### TAILVENT INIT()()()()########
10:30:55.404  :::===============================> TRACING IS CURRENTLY true<============================:::
10:30:55.404  start
10:31:10.437  removing timer
10:31:10.437  ::: SPLASHSCREEN DONE LAUNCHING GAME :::
10:31:10.437  1
10:31:10.437  :: CONTROLLER CHECK IS LOGGED IN ::> 1
10:31:10.447  :: CHECKING INTERNET CONNECITON ::
10:31:10.551  Warning! Controller -> checkPushMessages() USE_NETWORK shut off!
10:39:21.799  exit

Thanks
 

sorry scottrules44, missed your question.

I’m running windows 10 but I had the same problem on windows 8

More things Engineering wants you to try.

We think it’s a problem with a sub-directory in your project. Can you generate a list of files for us to look at. From a command prompt (cmd.exe), run this command:

DIR /S /B /AD {project-folder} > filelist.txt

Where {project-folder} is the path to your project where your main.lua is, then post the contents here for us to look at.  Also have you rebooted your computer since this problem started? It might be worth a reboot too.

Rob

I don’t know if I or someone else asked this but are you login on admin