Skip to content

Class name which contain special character like '$' not added #2699

Description

@AliChaudhry8

I am not using your project.. I am using google cloud translate jar file in my project. I know this is not the place to ack question not related to this project but i need help.
when i add jar file in my lib folder in android studio the .class files which contain '$' sign in there name not added. And due to this when i run my project it gives error that this file is missing. The error is.

java.lang.NoClassDefFoundError: com.google.cloud.translate.TranslateOptions$TranslateDefaults
at com.google.cloud.translate.TranslateOptions.(TranslateOptions.java:147)
at com.google.cloud.translate.TranslateOptions.(TranslateOptions.java:39)
at com.google.cloud.translate.TranslateOptions$Builder.build(TranslateOptions.java:142)
at edu.nic.dell.naseemchatbot.ChatActivity.translateTextWithOptionsAndModel(ChatActivity.java:938)
at edu.nic.dell.naseemchatbot.ChatActivity$5.onClick(ChatActivity.java:272)
at android.view.View.performClick(View.java:4766)
at android.view.View$PerformClick.run(View.java:19683)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5538)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Please help me out here. Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: translationIssues related to the Cloud Translation API API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions