Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android WVMExtractor: Failed to open libwvm.so

I am developing game in android using cocos2d-x plateform. I include game .so file in android code. Game working fine in marshmallow and below version devices but when i run this app in android 7 nougat getting unknown error.

E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libstlport.so" not found

I am sure that problem is in .so file. in .so file following line creating problem. sounds not working in android 7 Nougat.

CocosDenshion::SimpleAudioEngine::getInstance()->playEffect(writable);

is it any alternate method to play sound in cocos2d-x plateform.

like image 310
Hitesh Gehlot Avatar asked Jun 06 '17 07:06

Hitesh Gehlot


1 Answers

For Sound Effects, .mp3 only supports on iOS, According to cocos2d-x wiki :

Sound Effects

|    Platform     |   supported sound effects formats   |
|-----------------|:-----------------------------------:|
| Android Supports|         .ogg , .wav format.         |
| iOS             |          .mp3, .wav, .caf           |   
| Windows Desktop |         .mid and .wav only          |    

May be wiki is outdated so some OS of Android start supporting .mp3 file for Sound Effect. But from your test still android 7 nougat version not supporting .mp3 file.

like image 116
Abhishek Aryan Avatar answered Nov 20 '22 04:11

Abhishek Aryan