![]() The Java Software Development Kit (Java SDK) used to be called the Java. Does Java SDK include JDK There is no difference. At that point your build problems should be alleviated. Which JDK is suitable for Android Studio Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects. Once you do this I advice cleaning your project and invalidating caches on Android Studio and then rebuilding. You’ll want to update the JDK Location above to represent the value that was returned from the terminal ouput (the JDK path above). Once you have that you’ll want to open your Android Studio project which is giving you trouble and then press cmd+ to open the Project Structure window: Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home ![]() To find what JDK path your terminal is using (on a Mac), run this command: /usr/libexec/java_homeįor me it looked something like this (don’t copy this, its unique to your machine, this is just an example): To fix this, you’ll need to set the JDK Location to what the terminal is using. This error happens because of a version mismatch in Open JDK that is used in the terminal vs the one that is installed in Android Studio. There have been some issues filed that match this error here on the Google issue tracker. ![]() Googling for the error didn’t return any results, so I’m posting the fix here that I got from Philippe Breault (thanks Phil □). While working on a client project I recent received this error:Īn exception occurred: : not a valid name: Provider
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |