That sounds like a bug in the maven project. Let me check.
On Tuesday, June 15, 2021 at 12:00:09 AM UTC+3 [email protected] wrote:
> Sorry but I'm a little confused. I created a file, MyNative.java, in the
> common folder along with my other code:
>
> package com.symdesign.shoppinggenie;
>
> import com.codename1.system.NativeInterface;
> public interface MyNative extends NativeInterface {
> String helloWorld(String hi);
> }
>
> When I run "Generate Native Interfaces" I get the error "cannot access
> com.codename1.system.NativeInterface" but nevertheless
> it creates a file in MyProject/src/main/java/com.symdesign/myproject/
> called MyNativeImpl.java which looks like the advertised stub. (Is it in
> this file that I should put my native code? )
>
>
> On Sunday, June 13, 2021 at 9:37:18 PM UTC-4 Shai Almog wrote:
>
>> On which file?
>> notice that the native side shouldn't include the native interface, it
>> should only be in common.
>>
>> On Monday, June 14, 2021 at 1:08:30 AM UTC+3 [email protected] wrote:
>>
>>> I generated the native interface but when I try to build it, it says it
>>> can't find com.codename1.system.NativeInterface.
>>>
>>> On Saturday, June 12, 2021 at 9:41:08 PM UTC-4 Shai Almog wrote:
>>>
>>>> The plugin is only applicable to Ant projects not to maven projects.
>>>> For maven Generate Native Interfaces is one of the run configurations.
>>>> On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 [email protected] wrote:
>>>>
>>>>> I'm trying to create a native interface to access android's
>>>>> SpeechRecognitionHelper. Following the manual I created andinterface that
>>>>> extends NativeInterface i.e.
>>>>>
>>>>> import com.codename1.system.NativeInterface;
>>>>>
>>>>> public interface MyNative extends NativeInterface {
>>>>> String getSpeech(String hi);
>>>>> }
>>>>>
>>>>> The manual then says I can generate initial native code by right
>>>>> clicking on the interface and selecting "Generate Native Access" . This
>>>>> option doesn't seem to be available in my setup and I don't know where to
>>>>> go from here.
>>>>>
>>>>> -Dennis
>>>>>
>>>>>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/164c44ea-722c-4b4f-8829-b6f3347be77bn%40googlegroups.com.