error: cannot find symbol

65 views
Skip to first unread message

firebird...@gmail.com

unread,
Jun 2, 2016, 6:31:02 AM6/2/16
to CodenameOne Discussions
Hi all,
I have created a simple sample Application without any changes.
Certificate and Provisioning file is available and configured as project properties.

IDE: Eclipse
Desktop OS: Windows

Executing 'Send IOS Debug Build' starts the server build and shows the following error:


/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5327647990993852705xxx/stub/TestBuildDeployStub.java /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5327647990993852705xxx/stub/TestBuildDeployStub.java:14: error: cannot find symbol
    private TestBuildDeploy i;
            ^
  symbol:   class TestBuildDeploy
  location: class TestBuildDeployStub
/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5327647990993852705xxx/stub/TestBuildDeployStub.java:23: error: cannot find symbol
            i = new TestBuildDeploy();
                    ^
  symbol:   class TestBuildDeploy
  location: class TestBuildDeployStub
Note: /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5327647990993852705xxx/stub/TestBuildDeployStub.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

This is the java class:

package com.canda.mario.myapp;


import com.codename1.ui.Display;
import com.codename1.ui.Form;
import com.codename1.ui.Dialog;
import com.codename1.ui.Label;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.util.Resources;
import com.codename1.io.Log;
import com.codename1.ui.Toolbar;
import java.io.IOException;

/**
 * This file was generated by <a href="https://www.codenameone.com/">Codename One</a> for the purpose
 * of building native mobile applications using Java.
 */
public class TestBuildDeploy {

    private Form current;
    private Resources theme;

    public void init(Object context) {
        theme = UIManager.initFirstTheme("/theme");

        // Enable Toolbar on all Forms by default
        Toolbar.setGlobalToolbar(true);

        // Pro only feature, uncomment if you have a pro subscription
        // Log.bindCrashProtection(true);
    }
   
    public void start() {
        if(current != null){
            current.show();
            return;
        }
        Form hi = new Form("Hi World");
        hi.addComponent(new Label("Hi World"));
        hi.show();
    }

    public void stop() {
        current = Display.getInstance().getCurrent();
        if(current instanceof Dialog) {
            ((Dialog)current).dispose();
            current = Display.getInstance().getCurrent();
        }
    }
   
    public void destroy() {
    }

}

Shai Almog

unread,
Jun 3, 2016, 12:50:35 AM6/3/16
to CodenameOne Discussions, firebird...@gmail.com
Reply all
Reply to author
Forward
0 new messages