[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.
live2d sdk for android studio
do we need to import the framework or the lib folder to android studio in order to use it?
and how do we do that?
0 ·
Answers
To use the Cubism SDK, you need to import the Framework and Cubism Core libraries (lib folder).
Cubism Framework is a C++ source code, so please add it as a file to build.
Please add a reference to the lib folder when you build it as well.
We have included it in our CMakeLists.txt file.
Samples\OpenGL\Demo\proj.android.cmake\app\CMakeLists.txt
Framework\CMakeLists.txt
If you want to use them in Java or Kotlin, you may need to use the Java Native Interface.
Or refer to the official Android Developer page to add them.
https://developer.android.com/studio/projects/add-native-code?hl=en
https://developer.android.com/ndk/guides/prebuilts?hl=en
issues and questions:
1. google play now demends a 64 bit version of the ndk code/libraries and there is only 32 bit for the Cubism Core librarie(no x86_64 for android).
2. am i allowed to use the sample c++ demo library in my own application and change it (for Commercial use), coding all the JNI is a lot of work that is allready done in the sample.
3. afrer running the sample cmake file for my app it does not add the code as libraries(static and shared) like in the sample to the project but as refrenced files(i have added a screen shot of the problem to the comment)
issues and questions:
1. google play now demends a 64 bit version of the ndk code/libraries and there is only 32 bit for the Cubism Core librarie(no x86_64 for android).
2. am i allowed to use the sample c++ demo library in my own application and change it (for Commercial use), coding all the JNI is a lot of work that is allready done in the sample.
3. afrer running the sample cmake file for my app it does not add the code as libraries(static and shared) like in the sample to the project but as refrenced files(i wanted added a screen shot of the problem to the comment but it says 'You are not allowed to upload files in this category')
There are also armeabi-v7a and x86 libraries. The x86_64 library is not included because the terminal does not exist. Can't find this?
https://developer.android.com/ndk/guides/abis?hl=en#arm64-v8a
2. c++ demo library code can be changed and used.
and if you are not part of a company or are a small business with little sales, you can use it for free.
But beyond that, you will need to sign a contract.
For more information, please check the license agreement description or contact SDK release licensing form.
https://www.live2d.com/en/download/cubism-sdk/release-license/
https://www.live2d.jp/eng/contact/?redirect=1
3. I don't understand the problem. Is there a technical problem?
The configuration should match the app you are creating.
If you want to run the same configuration as Cubism SDK sample, please refer to CMakeLists.txt.
https://github.com/Live2D/CubismNativeSamples/blob/develop/Samples/OpenGL/Demo/proj.android.cmake/app/CMakeLists.txt#L29-48
Can I upload a screenshot as jpg or png?
Live2D Inc. Int'l Licensing with all the informaition but did not get an answer back
do i need to send the message from the site again?
3. i added screen shots of what is the problem i got the problem after running the CMakeLists.txt(regardless of the problem the code still runs the sample without issues)
can i still use the app like this?
issue 3: is the problem(no libraries only refrenced files)
sampleExample: is what it looks like in the sample(static and shared libraries)
Please answer a few questions in my DMs so that I can verify that you are the person who contacted me.
1. email address
2. your name (wrote in email)
3. company name
4. the content of the last email you sent
3. I have checked the attached image.
This is a source code configuration issue, so your application configuration should be fine to run.
I sure Google required support X86_64 from August 1, 2019.
https://developer.android.com/distribute/best-practices/develop/64-bit
Why Live2D SDK do not support this, or do you have any instruction so we can pass Google review release build.
Thank you!
@catCoder Sorry for tagging you, but I see you have the same problem, maybe you have the solution to share for me.
thanks!
I am really frustrated and I want to abandon android platform, and only develop iOS platform if this problem is not fixed.