Android Studio só roda se tiver logado com root

1. Android Studio só roda se tiver logado com root

Valter Arantes
valtercec

(usa Fedora)

Enviado em 09/08/2016 - 12:28h

Bom dia Pessoal.

Sou novo no ubuntu, no usando a versão 16 e ao tentar rodar o Android Studio eu so consigo se for como root, se tentar com usuário comum da esse erro:

/opt/android-studio/bin$ ./studio.sh 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Looking in classpath from com.intellij.util.lang.UrlClassLoader@4d76f3f8 for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/opt/android-studio/lib/jna.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Trying /home/valter/.AndroidStudio2.1/system/tmp/jna--823813792/jna7073643471950134086.tmp
Found jnidispatch at /home/valter/.AndroidStudio2.1/system/tmp/jna--823813792/jna7073643471950134086.tmp
[ 19427] ERROR - llij.ide.plugins.PluginManager - null
java.lang.ExceptionInInitializerError
at com.android.tools.idea.welcome.config.InstallerData.exists(InstallerData.java:132)
at com.android.tools.idea.welcome.wizard.AndroidStudioWelcomeScreenProvider.isHandoff(AndroidStudioWelcomeScreenProvider.java:83)
at com.android.tools.idea.welcome.wizard.AndroidStudioWelcomeScreenProvider.getWizardMode(AndroidStudioWelcomeScreenProvider.java:65)
at com.android.tools.idea.welcome.wizard.AndroidStudioWelcomeScreenProvider.isAvailable(AndroidStudioWelcomeScreenProvider.java:192)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrame.createScreen(FlatWelcomeFrame.java:146)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrame.<init>(FlatWelcomeFrame.java:75)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrameProvider.createFrame(FlatWelcomeFrameProvider.java:29)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:169)
at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:340)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:200)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:361)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.RuntimeException: Cannot create directory /home/valter/.android
at com.android.utils.FileUtils.mkdirs(FileUtils.java:122)
at com.android.prefs.AndroidLocation.getFolder(AndroidLocation.java:148)
at com.android.tools.idea.welcome.config.InstallerData.readProperties(InstallerData.java:88)
at com.android.tools.idea.welcome.config.InstallerData.parse(InstallerData.java:73)
at com.android.tools.idea.welcome.config.InstallerData.access$100(InstallerData.java:41)
at com.android.tools.idea.welcome.config.InstallerData$Holder.<clinit>(InstallerData.java:195)
... 26 more
[ 19454] ERROR - llij.ide.plugins.PluginManager - Android Studio 2.1.2 Build #AI-143.2915827
[ 19454] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_101
[ 19457] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
[ 19458] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
[ 19458] ERROR - llij.ide.plugins.PluginManager - OS: Linux
[ 19458] ERROR - llij.ide.plugins.PluginManager - Last Action:
[ 20644] WARN - ateSettings.impl.UpdateChecker - Cannot create directory /home/valter/.android
java.lang.RuntimeException: Cannot create directory /home/valter/.android
at com.android.utils.FileUtils.mkdirs(FileUtils.java:122)
at com.android.prefs.AndroidLocation.getFolder(AndroidLocation.java:148)
at com.android.sdklib.repositoryv2.AndroidSdkHandler$RepoConfig.createUserSourceProvider(AndroidSdkHandler.java:461)
at com.android.sdklib.repositoryv2.AndroidSdkHandler.getUserSourceProvider(AndroidSdkHandler.java:371)
at com.android.sdklib.repositoryv2.AndroidSdkHandler.getSdkManager(AndroidSdkHandler.java:242)
at com.android.tools.idea.updater.SdkComponentSource.initIfNecessary(SdkComponentSource.java:67)
at com.android.tools.idea.updater.SdkComponentSource.getComponents(SdkComponentSource.java:125)
at com.android.tools.idea.updater.SdkComponentSource.getAvailableVersions(SdkComponentSource.java:106)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.updateExternal(UpdateChecker.kt:347)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.doUpdateAndShowResult(UpdateChecker.kt:176)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.access$doUpdateAndShowResult(UpdateChecker.kt:74)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$updateAndShowResult$1.run(UpdateChecker.kt:107)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
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)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
^C[ 36832] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 130


Como resolver e o que pode ser ?

Obrigado pessoal.


  


2. Re: Android Studio só roda se tiver logado com root

Gabryel Macedo
tskgarroti

(usa Linux Mint)

Enviado em 10/08/2016 - 02:48h

Cara estou procurando solução pra isso faz uns 3 dias, estou com o mesmo problema mas no windows 10.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts