The interface of Android Studio looks good.
That’s why I would like to have a try on it. But when I first started the Android Studio, I faced the following error related to the rendering stuff, after I search for a while and tried several solution, I finally solved the problem~~~ T3T~The error I saw in the Android Studio is as follows:
java.lang.SecurityException: Unable to create temporary file at java.io.File.createTempFile(File.java:1875) at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:100) at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69) at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357) at javax.imageio.ImageIO.read(ImageIO.java:1351) at android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java:152) at android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java:135) at com.android.layoutlib.bridge.bars.CustomBar.loadIcon(CustomBar.java:145) at com.android.layoutlib.bridge.bars.CustomBar.loadIcon(CustomBar.java:125) at com.android.layoutlib.bridge.bars.StatusBar.<init>(StatusBar.java:47)
The way I solved the above problem is to upgrade the java
version.
After I upgrade my java version (please be aware that I upgrade the jdk
version) from Java(TM) SE Runtime Environment (build
1.7.0-b147) to Java(TM) SE Runtime Environment (build 1.7.0_51-b13).
Then the problem is solved. Let see
this solution works for other people or not :)
Below is after the problem is fixed. When I first launch
the Android Studio, the below screen will be shown.
Remarks:
Even if you cannot fix the error, you can simply click
the blue hyperlink “Turn off custom view rendering sandbox” shown on the image above
then the screen will show the same image as below as well J
No comments:
Post a Comment