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

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

When running the command below I get an error message. I have also tried to move the project folder and rename it.

The command doesn’t work on any folder on my system when a normal DIR works on these folders.

I guess this command sub-traverse all directorys but I belive there is some minor error in the command. Im running windows 10

DIR /S /B /AD {D:\git\myprojectfolder} > filelist.txt

The filename, directory name, or volume label syntax is incorrect.

thanks

Leave the {} off. That was meant to show “Put your stuff here”.

Rob

Ok, after running the command the paths below are listed in the filelist.txt. These paths all point to the .git and the .idea folders.

After removing these two folders the filelist.txt is empty and the apk still fails to build with the same error message #5 so I don’t think these folders are the problem.

========== fileslist.txt ============

D:\git\casanova\myproject.git
D:\git\casanova\myproject.idea
D:\git\casanova\myproject.git\hooks
D:\git\casanova\myproject.git\info
D:\git\casanova\myproject.git\logs
D:\git\casanova\myproject.git\objects
D:\git\casanova\myproject.git\refs
D:\git\casanova\myproject.git\logs\refs
D:\git\casanova\myproject.git\logs\refs\heads
D:\git\casanova\myproject.git\logs\refs\remotes
D:\git\casanova\myproject.git\logs\refs\remotes\origin
D:\git\casanova\myproject.git\objects\00
D:\git\casanova\myproject.git\objects\01
D:\git\casanova\myproject.git\objects\02
D:\git\casanova\myproject.git\objects\03
D:\git\casanova\myproject.git\objects\04
D:\git\casanova\myproject.git\objects\05
D:\git\casanova\myproject.git\objects\06
D:\git\casanova\myproject.git\objects\07
D:\git\casanova\myproject.git\objects\08
D:\git\casanova\myproject.git\objects\09
D:\git\casanova\myproject.git\objects\0a
D:\git\casanova\myproject.git\objects\0b
D:\git\casanova\myproject.git\objects\0c
D:\git\casanova\myproject.git\objects\0d
D:\git\casanova\myproject.git\objects\0e
D:\git\casanova\myproject.git\objects\0f
D:\git\casanova\myproject.git\objects\10
D:\git\casanova\myproject.git\objects\11
D:\git\casanova\myproject.git\objects\12
D:\git\casanova\myproject.git\objects\13
D:\git\casanova\myproject.git\objects\14
D:\git\casanova\myproject.git\objects\15
D:\git\casanova\myproject.git\objects\16
D:\git\casanova\myproject.git\objects\17
D:\git\casanova\myproject.git\objects\18
D:\git\casanova\myproject.git\objects\19
D:\git\casanova\myproject.git\objects\1a
D:\git\casanova\myproject.git\objects\1b
D:\git\casanova\myproject.git\objects\1c
D:\git\casanova\myproject.git\objects\1d
D:\git\casanova\myproject.git\objects\1e
D:\git\casanova\myproject.git\objects\1f
D:\git\casanova\myproject.git\objects\20
D:\git\casanova\myproject.git\objects\21
D:\git\casanova\myproject.git\objects\22
D:\git\casanova\myproject.git\objects\23
D:\git\casanova\myproject.git\objects\24
D:\git\casanova\myproject.git\objects\25
D:\git\casanova\myproject.git\objects\26
D:\git\casanova\myproject.git\objects\27
D:\git\casanova\myproject.git\objects\28
D:\git\casanova\myproject.git\objects\29
D:\git\casanova\myproject.git\objects\2a
D:\git\casanova\myproject.git\objects\2b
D:\git\casanova\myproject.git\objects\2c
D:\git\casanova\myproject.git\objects\2d
D:\git\casanova\myproject.git\objects\2e
D:\git\casanova\myproject.git\objects\2f
D:\git\casanova\myproject.git\objects\30
D:\git\casanova\myproject.git\objects\31
D:\git\casanova\myproject.git\objects\32
D:\git\casanova\myproject.git\objects\33
D:\git\casanova\myproject.git\objects\34
D:\git\casanova\myproject.git\objects\35
D:\git\casanova\myproject.git\objects\36
D:\git\casanova\myproject.git\objects\37
D:\git\casanova\myproject.git\objects\38
D:\git\casanova\myproject.git\objects\39
D:\git\casanova\myproject.git\objects\3a
D:\git\casanova\myproject.git\objects\3b
D:\git\casanova\myproject.git\objects\3c
D:\git\casanova\myproject.git\objects\3d
D:\git\casanova\myproject.git\objects\3e
D:\git\casanova\myproject.git\objects\3f
D:\git\casanova\myproject.git\objects\40
D:\git\casanova\myproject.git\objects\41
D:\git\casanova\myproject.git\objects\42
D:\git\casanova\myproject.git\objects\43
D:\git\casanova\myproject.git\objects\44
D:\git\casanova\myproject.git\objects\45
D:\git\casanova\myproject.git\objects\46
D:\git\casanova\myproject.git\objects\47
D:\git\casanova\myproject.git\objects\48
D:\git\casanova\myproject.git\objects\49
D:\git\casanova\myproject.git\objects\4a
D:\git\casanova\myproject.git\objects\4b
D:\git\casanova\myproject.git\objects\4c
D:\git\casanova\myproject.git\objects\4d
D:\git\casanova\myproject.git\objects\4e
D:\git\casanova\myproject.git\objects\4f
D:\git\casanova\myproject.git\objects\50
D:\git\casanova\myproject.git\objects\51
D:\git\casanova\myproject.git\objects\52
D:\git\casanova\myproject.git\objects\53
D:\git\casanova\myproject.git\objects\54
D:\git\casanova\myproject.git\objects\55
D:\git\casanova\myproject.git\objects\56
D:\git\casanova\myproject.git\objects\57
D:\git\casanova\myproject.git\objects\58
D:\git\casanova\myproject.git\objects\59
D:\git\casanova\myproject.git\objects\5a
D:\git\casanova\myproject.git\objects\5b
D:\git\casanova\myproject.git\objects\5c
D:\git\casanova\myproject.git\objects\5d
D:\git\casanova\myproject.git\objects\5e
D:\git\casanova\myproject.git\objects\5f
D:\git\casanova\myproject.git\objects\60
D:\git\casanova\myproject.git\objects\61
D:\git\casanova\myproject.git\objects\62
D:\git\casanova\myproject.git\objects\63
D:\git\casanova\myproject.git\objects\64
D:\git\casanova\myproject.git\objects\65
D:\git\casanova\myproject.git\objects\66
D:\git\casanova\myproject.git\objects\67
D:\git\casanova\myproject.git\objects\68
D:\git\casanova\myproject.git\objects\69
D:\git\casanova\myproject.git\objects\6a
D:\git\casanova\myproject.git\objects\6b
D:\git\casanova\myproject.git\objects\6c
D:\git\casanova\myproject.git\objects\6d
D:\git\casanova\myproject.git\objects\6e
D:\git\casanova\myproject.git\objects\6f
D:\git\casanova\myproject.git\objects\70
D:\git\casanova\myproject.git\objects\71
D:\git\casanova\myproject.git\objects\72
D:\git\casanova\myproject.git\objects\73
D:\git\casanova\myproject.git\objects\74
D:\git\casanova\myproject.git\objects\75
D:\git\casanova\myproject.git\objects\76
D:\git\casanova\myproject.git\objects\77
D:\git\casanova\myproject.git\objects\78
D:\git\casanova\myproject.git\objects\79
D:\git\casanova\myproject.git\objects\7a
D:\git\casanova\myproject.git\objects\7c
D:\git\casanova\myproject.git\objects\7d
D:\git\casanova\myproject.git\objects\7f
D:\git\casanova\myproject.git\objects\80
D:\git\casanova\myproject.git\objects\81
D:\git\casanova\myproject.git\objects\82
D:\git\casanova\myproject.git\objects\83
D:\git\casanova\myproject.git\objects\84
D:\git\casanova\myproject.git\objects\85
D:\git\casanova\myproject.git\objects\86
D:\git\casanova\myproject.git\objects\87
D:\git\casanova\myproject.git\objects\88
D:\git\casanova\myproject.git\objects\89
D:\git\casanova\myproject.git\objects\8a
D:\git\casanova\myproject.git\objects\8b
D:\git\casanova\myproject.git\objects\8c
D:\git\casanova\myproject.git\objects\8d
D:\git\casanova\myproject.git\objects\8e
D:\git\casanova\myproject.git\objects\8f
D:\git\casanova\myproject.git\objects\90
D:\git\casanova\myproject.git\objects\91
D:\git\casanova\myproject.git\objects\92
D:\git\casanova\myproject.git\objects\93
D:\git\casanova\myproject.git\objects\94
D:\git\casanova\myproject.git\objects\95
D:\git\casanova\myproject.git\objects\96
D:\git\casanova\myproject.git\objects\97
D:\git\casanova\myproject.git\objects\98
D:\git\casanova\myproject.git\objects\99
D:\git\casanova\myproject.git\objects\9a
D:\git\casanova\myproject.git\objects\9b
D:\git\casanova\myproject.git\objects\9c
D:\git\casanova\myproject.git\objects\9d
D:\git\casanova\myproject.git\objects\9e
D:\git\casanova\myproject.git\objects\9f
D:\git\casanova\myproject.git\objects\a0
D:\git\casanova\myproject.git\objects\a1
D:\git\casanova\myproject.git\objects\a2
D:\git\casanova\myproject.git\objects\a3
D:\git\casanova\myproject.git\objects\a4
D:\git\casanova\myproject.git\objects\a5
D:\git\casanova\myproject.git\objects\a6
D:\git\casanova\myproject.git\objects\a7
D:\git\casanova\myproject.git\objects\a8
D:\git\casanova\myproject.git\objects\a9
D:\git\casanova\myproject.git\objects\aa
D:\git\casanova\myproject.git\objects\ab
D:\git\casanova\myproject.git\objects\ac
D:\git\casanova\myproject.git\objects\ad
D:\git\casanova\myproject.git\objects\ae
D:\git\casanova\myproject.git\objects\af
D:\git\casanova\myproject.git\objects\b0
D:\git\casanova\myproject.git\objects\b1
D:\git\casanova\myproject.git\objects\b2
D:\git\casanova\myproject.git\objects\b3
D:\git\casanova\myproject.git\objects\b4
D:\git\casanova\myproject.git\objects\b5
D:\git\casanova\myproject.git\objects\b6
D:\git\casanova\myproject.git\objects\b7
D:\git\casanova\myproject.git\objects\b8
D:\git\casanova\myproject.git\objects\b9
D:\git\casanova\myproject.git\objects\ba
D:\git\casanova\myproject.git\objects\bb
D:\git\casanova\myproject.git\objects\bc
D:\git\casanova\myproject.git\objects\bd
D:\git\casanova\myproject.git\objects\be
D:\git\casanova\myproject.git\objects\bf
D:\git\casanova\myproject.git\objects\c0
D:\git\casanova\myproject.git\objects\c1
D:\git\casanova\myproject.git\objects\c2
D:\git\casanova\myproject.git\objects\c3
D:\git\casanova\myproject.git\objects\c4
D:\git\casanova\myproject.git\objects\c5
D:\git\casanova\myproject.git\objects\c6
D:\git\casanova\myproject.git\objects\c7
D:\git\casanova\myproject.git\objects\c8
D:\git\casanova\myproject.git\objects\c9
D:\git\casanova\myproject.git\objects\ca
D:\git\casanova\myproject.git\objects\cb
D:\git\casanova\myproject.git\objects\cc
D:\git\casanova\myproject.git\objects\cd
D:\git\casanova\myproject.git\objects\ce
D:\git\casanova\myproject.git\objects\cf
D:\git\casanova\myproject.git\objects\d0
D:\git\casanova\myproject.git\objects\d1
D:\git\casanova\myproject.git\objects\d2
D:\git\casanova\myproject.git\objects\d3
D:\git\casanova\myproject.git\objects\d4
D:\git\casanova\myproject.git\objects\d5
D:\git\casanova\myproject.git\objects\d6
D:\git\casanova\myproject.git\objects\d7
D:\git\casanova\myproject.git\objects\d8
D:\git\casanova\myproject.git\objects\d9
D:\git\casanova\myproject.git\objects\da
D:\git\casanova\myproject.git\objects\db
D:\git\casanova\myproject.git\objects\dc
D:\git\casanova\myproject.git\objects\dd
D:\git\casanova\myproject.git\objects\de
D:\git\casanova\myproject.git\objects\df
D:\git\casanova\myproject.git\objects\e0
D:\git\casanova\myproject.git\objects\e1
D:\git\casanova\myproject.git\objects\e2
D:\git\casanova\myproject.git\objects\e3
D:\git\casanova\myproject.git\objects\e4
D:\git\casanova\myproject.git\objects\e5
D:\git\casanova\myproject.git\objects\e6
D:\git\casanova\myproject.git\objects\e7
D:\git\casanova\myproject.git\objects\e8
D:\git\casanova\myproject.git\objects\e9
D:\git\casanova\myproject.git\objects\ea
D:\git\casanova\myproject.git\objects\eb
D:\git\casanova\myproject.git\objects\ec
D:\git\casanova\myproject.git\objects\ed
D:\git\casanova\myproject.git\objects\ee
D:\git\casanova\myproject.git\objects\ef
D:\git\casanova\myproject.git\objects\f0
D:\git\casanova\myproject.git\objects\f1
D:\git\casanova\myproject.git\objects\f2
D:\git\casanova\myproject.git\objects\f3
D:\git\casanova\myproject.git\objects\f4
D:\git\casanova\myproject.git\objects\f5
D:\git\casanova\myproject.git\objects\f6
D:\git\casanova\myproject.git\objects\f7
D:\git\casanova\myproject.git\objects\f8
D:\git\casanova\myproject.git\objects\f9
D:\git\casanova\myproject.git\objects\fa
D:\git\casanova\myproject.git\objects\fb
D:\git\casanova\myproject.git\objects\fc
D:\git\casanova\myproject.git\objects\fd
D:\git\casanova\myproject.git\objects\fe
D:\git\casanova\myproject.git\objects\ff
D:\git\casanova\myproject.git\objects\info
D:\git\casanova\myproject.git\objects\pack
D:\git\casanova\myproject.git\refs\heads
D:\git\casanova\myproject.git\refs\remotes
D:\git\casanova\myproject.git\refs\tags
D:\git\casanova\myproject.git\refs\remotes\origin
D:\git\casanova\myproject.idea\copyright
D:\git\casanova\myproject.idea\scopes
 

I guess I’m on square one here and time is running away.

I have an updated SDK but the Ansca (Corona) servers gives me

build error #5 when trying to build the apk. I have thousands of lines of code and no idea what might have

gone wrong after the update.

Soon I seen no other solution than moving back in time and reach for an old working sdk build.

Any other ideas?

Thanks

I’ll get this list to the engineers since they wanted to see it. They however have put in some better messaging around this particular error in the latest daily build 2931. Try installing that and see if we get a better idea of what the cause is.

Rob

Look for an email from me.

Rob

I finally managed to find out what caused the undefined build error#5.

In my code I exit my app on applicationSuspend. (see below).

So I now skipped that part and made a workaround.

Thanks Rob for your support!

================== CODE ================
local mainEvent = {}

local onSystem = function( event )
    if event.type == “applicationStart” then
        print(“start”)
    elseif event.type == “applicationExit” then
        print(“exit”)
    elseif event.type == “applicationSuspend” then
        native.requestExit() – BUGGED OUT MY APP CAUSING THE ERROR

    elseif event.type == “applicationResume” then
        print(“resume”)
    end
end

–setup a system event listener
mainEvent[1]  = Runtime:addEventListener( “system”, onSystem )

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