Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

NullPointerException : GetTranslationTask.getTranslationEngineResult(GetTranslationTask.java:142) #35

Open
shiguang1120 opened this issue Jul 6, 2017 · 6 comments

Comments

@shiguang1120
Copy link

Android Studio 2.2.20

Plugin Error
Android Localizationer threw an uncaught NullPointerException. Disable Plugin

null
java.lang.NullPointerException
at java.io.StringReader.(StringReader.java:50)
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at language_engine.bing.BingTranslationApi.getAccessToken(BingTranslationApi.java:64)
at data.task.GetTranslationTask.getTranslationEngineResult(GetTranslationTask.java:142)
at data.task.GetTranslationTask.run(GetTranslationTask.java:93)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

@RogueJun
Copy link

同上

@maowentao0416
Copy link

me too

1 similar comment
@Virgilseed
Copy link

me too

@Virgilseed
Copy link

android studio 3.0Beta 2

@Fish-Bin
Copy link

@shiguang1120 问题解决没?

@megvil
Copy link

megvil commented Oct 11, 2017

I fixed it ,before use it,you must get the google transltation Api key ,set in the AS 。for more info. open this :https://cloud.google.com/translate/docs/getting-started?csw=1 @rainbowBin @Virgilseed @maowentao0416 @shiguang1120

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants