How can I fix this error in Android Studio: “Cause: invalid type code: 00”?

前端 未结 4 2091
旧巷少年郎
旧巷少年郎 2021-02-12 04:03

All the code was working perfectly and nothing was wrong. Suddenly when i want to run the app it gives me this one error.

I have not touched the code.I tried uninstalling

4条回答
  •  佛祖请我去吃肉
    2021-02-12 04:53

    This kind of error mostly happens for not using embedded JDK, I face this error in my Android studio 4.0.1 whenever I point my JDK location to "/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home"(This is my mac location for JDK, for window it might be different).

    I follow the below steps to solve it.

    • Go to File -> Project Structure.

    • On the left side, click on SDK Location and go to JDK Location.

    • Change it to the Embedded JDK that comes with Android Studio.

    • Click on OK.

提交回复
热议问题