I've solved my problem. It's not easy way. I've download android source codes and compile it. Then i get jar file with compiled classes and set as library for my project. I know that it's crazy solution :) but i don't found another way.
How to use com.google.android.collect.list in Android Studio
-
10-06-2023 - |
Question
I want to use com.google.android.collect.List
in my apk
. But I don't understand which library I should include in the project.
I see that this class must be in frameworks/base/core
. And I think that frameworks/base/core
is included in framework.jar
or framework2.jar
.
But, framework.jar
and framework2.jar
from my phone contains odex
files, and Android Studio can't use it.
Can anyone explain to me how to use classes from frameworks/base/core in apk
?
In addition, how I understand android sdk don't include frameworks/base/core.
Solution 2
OTHER TIPS
I don't think you need to download the android source code. If you are looking for Lists, Maps then use Guava library.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow