Android Tutorial B4ABuilder / B4JBuilder - Command line compilation

wonder

Expert
Licensed User
Longtime User
B4X:
B4A version: 6.31
Parsing code.                       ( 0.38s)
Compiling code.                     ( 0.25s)
Compiling layouts code.             ( 0.00s)
Organizing libraries.               ( 0.00s)
Generating R file.                  ( 0.20s)
Compiling generated Java code.      ( 2.54s)
Convert byte code - optimized dex.  ( 1.98s)
Packaging files.                    ( 0.77s)
Copying libraries resources         ( 2.03s)
    Found 23 resource files.        
Signing package file (private key)  ( 1.55s)
ZipAlign file.                      ( 0.39s)
Installing file to device.          (12.68s)
    Device serial: 127.0.0.1:21503
Completed successfully.

It's not slow at all, but some extra-speed is always welcome!
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello all,

Anyone have this error? How is possible B4Abuilder identify the B4A file on the summary and bnot when compiling?
It sounds like the parameter -BaseFolder not working (-BaseFolder=)

C:\Program Files (x86)\Anywhere Software\Basic4android>B4ABuilder.exe -task=Build -obfuscate=False -BaseFolder=C:\Agent\_work\3\s\B4A -Configuration=GooglePlay -Project=PetSitter.b4a
B4ABuilder v9.01.2
Java version: 8
BaseFolder: C:\Agent\_work\3\s\B4A
ProjectFile: PetSitter.b4a

System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Anywhere Software\Basic4android\PetSitter.b4a'.
File name: 'C:\Program Files (x86)\Anywhere Software\Basic4android\PetSitter.b4a'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at dg.p(FileMode A_0, FileAccess A_1)
at cf.l()
at cf.j(String[] A_0)
at cf.m(String[] A_0)
Could not find file 'C:\Program Files (x86)\Anywhere Software\Basic4android\PetSitter.b4a'.



Even with this simple command:
B4X:
B4ABuilder.exe -task=Build -BaseFolder=C:\Agent\_work\3\s\B4A\

@Erel You change something on this B4ABuilder v9.01.2??

*Update*
I saw the problem, the folder /B4A after my last directory is ignoring by builder, this is correct?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…