Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled TdLib for Android not working in Android Studio #2949

Closed
Xiryl opened this issue Jun 27, 2024 · 2 comments
Closed

Compiled TdLib for Android not working in Android Studio #2949

Xiryl opened this issue Jun 27, 2024 · 2 comments

Comments

@Xiryl
Copy link

Xiryl commented Jun 27, 2024

Hello,

I used the sources from tdlib.zip (https://core.telegram.org/tdlib/tdlib.zip) for an android application until they were deprecated.

I compiled the sources using the android guide (https://github.com/tdlib/td/blob/master/example/android/README.md), and replaced the .so and .java files within the project
image

The problem is that with these new files TdApi.java is not resolved by android studio, it always gives problems "cannot resolve TdApi" and even within the TdApi class it does not resolve generics and other types, making it unusable:

image

Has anyone managed to import the new compiled sources inside Android Studio? Is there any particular step to do that I forgot?

Thanks!

@p-vorobyev
Copy link

TdApi.java file is about 3.4Mb. By default IDE can't analyze a file of this size. You can increase this by special IDE property. Go to Help -> Edit Custom Properties... and idea.properties file will be opened. For example, add to it idea.max.intellisense.filesize=5000 and reload your IDE.

@Xiryl
Copy link
Author

Xiryl commented Jun 27, 2024

Seems working, thank you!

@Xiryl Xiryl closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants