Software Archive
Read-only legacy content
17060 Discussions

Missing API Emulation and Can't Build Apps

Lina_M_
Beginner
759 Views

Hi Everyone,

Ever since the latest XDK update a few days ago, I kept on getting this error in the emulator - 'Missing API Emulation'. I then deleted the entire file from Intel XDK and re-uploaded the HTML5 without adding third party plugins, but the same error still occurred.


Intel XDK Missing API Emulation

I also can't build my project using Crosswalk for Android as there would be an error whilst compiling.

I am using Construct 2 (release 206, 64-bit) as the game engine to build my android apps, importing the files as HTML5 using Construct 2 Cordova for Mobile export.

These problems have never occurred before the last update.

Thank you for your help and suggestions.

Lina.

0 Kudos
1 Solution
Amrita_C_Intel
Employee
759 Views

As mentioned above either you can use debug tab or build tab to see the expected result.

Cordova plugins generally consist of two parts: 1) JavaScript API and 2) underlying native code that is specific to the target platform (e.g., Java code for Android, Objective C code for iOS, etc.) The Intel XDK emulator is a simulator that simulates that native part, but only in a very generic way and only for a select number of Cordova APIs. For any APIs that it does not have an underlying "native simulation" it provides this message so you can at least exercise code. It doesn't actually simulate the underlying functionality, but it doeur code.

Ultimately, you need to run it on a real device with a real build, as you discovered.

View solution in original post

0 Kudos
4 Replies
Anusha_M_Intel1
Employee
759 Views

Hi Lina,

That is how the Emulate tab supports third-party plugins, there is no simulation of the native code. You need to use the Debug tab to get the full emulation. 

0 Kudos
Amrita_C_Intel
Employee
760 Views

As mentioned above either you can use debug tab or build tab to see the expected result.

Cordova plugins generally consist of two parts: 1) JavaScript API and 2) underlying native code that is specific to the target platform (e.g., Java code for Android, Objective C code for iOS, etc.) The Intel XDK emulator is a simulator that simulates that native part, but only in a very generic way and only for a select number of Cordova APIs. For any APIs that it does not have an underlying "native simulation" it provides this message so you can at least exercise code. It doesn't actually simulate the underlying functionality, but it doeur code.

Ultimately, you need to run it on a real device with a real build, as you discovered.

0 Kudos
Lina_M_
Beginner
759 Views

 

Thanks for the replies.

0 Kudos
Swati_S_Intel1
Employee
759 Views

@Lina, are you able to build your project using Crosswalk build? Let us know what error are you getting..

0 Kudos
Reply