Android Question Compiling generated Java code. Error

Discussion in 'Android Questions' started by MarcelloCSI, May 5, 2015.

  1. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    Hello everyone,
    I'm Marcello, an Italian guy.
    I'm really new on B4A uses.

    I'm using trial version in order to learn the environment and buy a full version in next days.

    Today i've imported source files from a friend project, and i'm having compiling trouble.
    Here there's a screenshot of the error.

    I discovered the code of the error in Java file.
    public void onCreate(Bundle savedInstanceState) {
    if (isFirst) {
                processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), 
                float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
            else if (previousOne != null) {
                Activity p = previousOne.get();
                if (p != null && p != this) {
                    BA.LogInfo("Killing previous instance (automazioni).");
            processBA.runHook("oncreate", this, null);
            if (!includeTitle) {
            if (fullScreen) {
            mostCurrent = this;
            processBA.sharedProcessBA.activityBA = null;
            layout = new BALayout(this);
            afterFirstLayout = false;
            BA.handler.postDelayed(new WaitForLayout(), 5);


    Please help me to solve this problem!

    Thanks in advance.

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    It seems like B4A is misconfigured. Uninstall it and reinstall it in a new folder (to make sure that there are no old libraries kept).
    MarcelloCSI likes this.
  3. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    It Works! Thank you very much Erel :D
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice