0
votes

I have followed Shai's youtube tutorial on how to implement native interfaces into my codename one app. I create the interface in the src directory then generate the native access classes in the Native folder. However when I try to enter android.widget.Button b = ... I get an error message that says package android.widget does not exist. What am I doing wrong? The NativeDemo uses the exact same code.

1
Are you using Eclipse or Android studio? Are you sure you have created Android Project ? - Gennadiy Ryabkin
@zest I'm using netbeans. What do you mean by created an android project? I've created the codename one project in netbeans. - Kyri33
This package is placed inside Android SDK, check your path to framework in Netbeans. Here is the link where you can download latest version developer.android.com/sdk/installing/index.html?pkg=tools - Gennadiy Ryabkin
@zest So once I download the sdk how do I link it to my cn1 project? - Kyri33
Probably I not understand Codename but here is the manual how to setup Android SDK forums.netbeans.org/topic51543.html in Netbeans - Gennadiy Ryabkin

1 Answers

0
votes

This is just a code completion issue, the build will work correctly see:

https://groups.google.com/d/msg/codenameone-discussions/c7PeUr8o-RQ/zVzk6FjsEgAJ