Android studio error while running "New Project Wizard"


(Valts Dārznieks) #1

Hello, I’m trying out Android Studio for first time and am getting error while creating new project. I used OpenJDK, but later also tried with oracle-java8. Anyway here is error I’m getting.

------------------------------------------------------------------------------------------------------------ Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.8/userguide/gradle_daemon.html Please read below process output to find out more: ----------------------- Failed to instantiate [ch.qos.logback.classic.LoggerContext] Reported exception: java.lang.InternalError

at java.util.Currency$1.run(Currency.java:224)

at java.security.AccessController.doPrivileged(Native Method)

at java.util.Currency.(Currency.java:192)

at java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)

at java.text.DecimalFormatSymbols.(DecimalFormatSymbols.java:94)

at java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)

at java.text.NumberFormat.getInstance(NumberFormat.java:767)

at java.text.NumberFormat.getIntegerInstance(NumberFormat.java:439)

at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:664)

at java.text.SimpleDateFormat.(SimpleDateFormat.java:585)

at java.text.SimpleDateFormat.(SimpleDateFormat.java:560)

at ch.qos.logback.core.util.CachingDateFormatter.(CachingDateFormatter.java:34)

at ch.qos.logback.classic.pattern.DateConverter.start(DateConverter.java:42)

at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37)

at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91)

at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28)

at ch.qos.logback.classic.BasicConfigurator.configure(BasicConfigurator.java:50)

at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)

at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)

at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)

at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)

at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)

at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)

at org.gradle.api.logging.Logging.getLogger(Logging.java:42)

at org.gradle.launcher.daemon.bootstrap.DaemonMain.(DaemonMain.java:50)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22) Caused by: java.io.FileNotFoundException: /usr/lib/jvm/jdk1.7.0/jre/lib/currency.data (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(FileInputStream.java:138)

at java.io.FileInputStream.(FileInputStream.java:97)

at java.util.Currency$1.run(Currency.java:198)

… 33 more

FAILURE: Build aborted because of an internal error.

  • What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.

  • Try: Run with --debug option to get additional debug info.

  • Exception is: java.lang.NoClassDefFoundError: Could not initialize class java.util.Currency

at java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)

at java.text.DecimalFormatSymbols.(DecimalFormatSymbols.java:94)

at java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)

at java.text.NumberFormat.getInstance(NumberFormat.java:767)

at java.text.NumberFormat.getIntegerInstance(NumberFormat.java:439)

at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:664)

at java.text.SimpleDateFormat.(SimpleDateFormat.java:585)

at java.text.SimpleDateFormat.(SimpleDateFormat.java:560)

at org.gradle.util.GradleVersion.(GradleVersion.java:73)

at org.gradle.launcher.daemon.registry.DaemonDir.(DaemonDir.java:31)

at org.gradle.launcher.daemon.registry.DaemonRegistryServices.createDaemonDir(DaemonRegistryServices.java:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.gradle.internal.service.DefaultServiceRegistry.invoke(DefaultServiceRegistry.java:175)

at org.gradle.internal.service.DefaultServiceRegistry.access$300(DefaultServiceRegistry.java:47)

at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.create(DefaultServiceRegistry.java:336)

at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectProvider.getInstance(DefaultServiceRegistry.java:240)

at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.getService(DefaultServiceRegistry.java:275)

at org.gradle.internal.service.DefaultServiceRegistry$OwnServices.getService(DefaultServiceRegistry.java:215)

at org.gradle.internal.service.DefaultServiceRegistry.doGet(DefaultServiceRegistry.java:145)

at org.gradle.internal.service.AbstractServiceRegistry.get(AbstractServiceRegistry.java:65)

at org.gradle.internal.service.DefaultServiceRegistry$NestedServices.getService(DefaultServiceRegistry.java:413)

at org.gradle.internal.service.DefaultServiceRegistry.doGet(DefaultServiceRegistry.java:145)

at org.gradle.internal.service.AbstractServiceRegistry.get(AbstractServiceRegistry.java:65)

at org.gradle.launcher.daemon.server.DaemonServices.getDaemonLogFile(DaemonServices.java:79)

at org.gradle.launcher.daemon.bootstrap.DaemonMain.doAction(DaemonMain.java:99)

at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

at org.gradle.launcher.daemon.bootstrap.DaemonMain.main(DaemonMain.java:82)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)

Consult IDE log for more details (Help | Show Log)