Android Question Compiling error after installing b4a for the first time

Lyndon Bermoy

Active Member
Licensed User
Longtime User
Hi, I already installed the b4a but I cannot run it even as a button with hello world. This the error I've got:

B4A Version: 9.50
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.02s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. Error
javac 1.8.0_231
src\b4a\example\main.java:50: error: cannot find symbol
processBA.runHook("oncreate", this, null);
^
symbol: method runHook(String,main,<null>)
location: variable processBA of type BA
Note: src\b4a\example\starter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

Please help. Thank you.
 

Lyndon Bermoy

Active Member
Licensed User
Longtime User
It looks like B4A is misconfigured. You are probably using an old core library. Uninstall B4A, make sure that all files in the installation folder (Program Files (x86)\Anywhere Software\Basic4android) are deleted and reinstall B4A.

Thank you, Sir. I already run it correctly. My mistake was I included and copy pasted my old library files in the library folder of the b4a. Thank you, again.
 
Upvote 0
Top