igorski / MWEngine

Audio engine and DSP library for Android, written in C++ providing low latency performance within a musical context, while providing a Java/Kotlin API. Supports both OpenSL and AAudio.
MIT License
259 stars 45 forks source link

Cannot able to import core package globally. #112

Closed syedateeb1 closed 4 years ago

syedateeb1 commented 4 years ago

I have integrated the swig and my project and cmake files are successfully build. I can even access the core files but when i try to import it globally in the class it gaves me error. see screenshot for more understanding image

igorski commented 4 years ago

Strange. What OS and IDE are you using?

syedateeb1 commented 4 years ago

Windows 7 and android studio

igorski commented 4 years ago

What is the version of SWIG you are using ? Please try using the latest version 4.0.1 which can be downloaded from the SWIG website (note the separate URL for a Windows installer). This version of SWIG provides extended support for C++14 which is used by MWEngine. My guess is that the Java files have been generated fine but that their implementation is referencing an unsupported feature, making Android Studio consider them unusable.

rajaroni commented 4 years ago

image getting same error as there is core package inside java folder

igorski commented 4 years ago

I managed to reproduce this in a VM for the same Windows version. Looks like the generated Java classes do not acknowledge their package location to be appropriate for their folder location.

Right clicking on the core folder in the project panel and doing Mark directory as > Unmark as sources root has resolved the issue for me. Can you verify whether it addresses your issue as well ?

syedateeb1 commented 4 years ago

Thanks . it worked

syedateeb1 commented 4 years ago

<3