I am getting the following error when trying to build my first project in Android Studio. All I have done is install Android Studio, the SDKs tools, SDK platform tools, SDK build tools, and APIs 17-22. Then I started a new blank activity with fragment and when I do the first build, I am getting the error. I have not changed any of the code yet.
java.io.IOException: Cannot run program "F:\Development\Users\Robert\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe": CreateProcess error=5, Access is denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:154)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:105)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:204)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
thanks,
Robert
. .
I guess I have stumped the community.
Related
i get this error whenever i try to run DDMS from terminal im on ubuntu 9.04 and i have eclipse installed as well as the java jdk..and everything is up to date..any ideas?
30:06 E/ddms: shutting down due to uncaught exception
30:06 E/ddms: java.lang.UnsatisfiedLinkError: /home/nismo/Desktop/sdk/tools/lib/libswt-pi-gtk-3236.so: /home/nismo/Desktop/sdk/tools/lib/libswt-pi-gtk-3236.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1687)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
at com.android.ddms.UIThread.runUI(UIThread.java:329)
at com.android.ddms.Main.main(Main.java:97)
I tried doing a search to see if anyone had the problem I am currently having, but I could not find anything. So, I thought I would ask the community.
I am trying to deodex an apk. I found AvaBox and tried using it. The program says that it deodexed it, but there is no classes.dex file in the apk. I am getting an error running it though. Here is the error:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: java.lang.RuntimeException: error while dumping fiel
ds
at org.jf.dexlib.Util.Deodexerant.sendMultilineCommand(Deodexerant.java:
241)
at org.jf.dexlib.Util.Deodexerant.access$200(Deodexerant.java:44)
at org.jf.dexlib.Util.Deodexerant$ClassData.loadFields(Deodexerant.java:
521)
at org.jf.dexlib.Util.Deodexerant$ClassData.lookupField(Deodexerant.java
:473)
at org.jf.dexlib.Util.Deodexerant.lookupField(Deodexerant.java:142)
at org.jf.dexlib.Util.DeodexUtil.deodexInstruction(DeodexUtil.java:566)
at org.jf.dexlib.Util.DeodexUtil.deodexerizeCode(DeodexUtil.java:205)
at org.jf.baksmali.Adaptors.MethodDefinition$MethodItemList.generateMeth
odItemList(MethodDefinition.java:183)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefini
tion.java:144)
at org.jf.baksmali.Adaptors.MethodDefinition.makeTemplate(MethodDefiniti
on.java:61)
at org.jf.baksmali.Adaptors.ClassDefinition.getDirectMethods(ClassDefini
tion.java:272)
at org.jf.baksmali.Adaptors.ClassDefinition.makeTemplate(ClassDefinition
.java:74)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:112)
at org.jf.baksmali.main.main(main.java:183)
Caused by: java.lang.RuntimeException: error while dumping fields
at org.jf.dexlib.Util.Deodexerant.sendMultilineCommand(Deodexerant.java:
232)
... 13 more
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:733)
at org.jf.dexlib.DexFile.place(DexFile.java:608)
at org.jf.smali.main.main(main.java:177)
Any clues? Thanks in advance for any response and help you might be able to offer.
When I start up Android Studio, I get this terrifying error message
Start failed: Internal error. Please report to code-google-com
java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NOTNull parameter 'name' of com/android/tools/idea/welcome/Platform. must not be null at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178) 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:362) 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.IllegalArgumentException: Argument for @NOTNull parameter 'name' of com/android/tools/idea/welcome/Platform. must not be null at com.android.tools.idea.welcome.Platform.(Platform.java) at com.android.tools.idea.welcome.Platform.getLatestPlatform(Platform.java:72) at com.android.tools.idea.welcome.Platform.createSubtree(Platform.java:89) at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:81) at com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215) at com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97) at com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233) at com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75) at com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100) at com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92) at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.(WelcomeFrame.java:68) at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173) at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:302) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172) ... 16 more
I have already set the environment variable of JDK_HOME with the value as the destination of JDK
I have uninstalled and reinstalled many times, and I have even reset my PC
Any help would be appreciated -Pingu
Can you take a printscreen?
Can we know which Android Studio version are you using? Are you running this on Windows/Linux or Mac?
Please install JAVA JDK 8 from oracle and updating your Android Studio .
Hello,
I could not find an answer on how to preload the expected libaries so I hope anyone can help me here.
I am a complete noob In devloping with Android Studio.
I tried to write a small app and ran it with the following errors while loading th e AVD (Android 5.1 , WVGA):
Code:
Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i915_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i915
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
emulator: ERROR: virtual device name contains invalid characters
emulator: could not find virtual device named '3.2_QVGA_(ADP2)_API_22'
I think to get this solved will not be quiet diffcult for advanced users.
Thank you verry much for your help! :good:
Some infos that might help you:
OS: Kubuntu 16.04
Android Studio 2.2.3
used coding language: Java
I am trying to compile some C++ source files into a native library using Android studio, NDK and Cmake, but upon building, I get the error:
Code:
A problem occurred configuring project ':mobile'.
> C:\Users\User\Documents\B3d\mobile\.externalNativeBuild\cmake\debug\armeabi-v7a\compile_commands.json
I went to the folder mentioned in the error and 'compile_commands.json' does not exist there. What could be the problem?
After upgrading gradle plugin, I get the error:
Code:
C:\Users\User\Documents\B3d\mobile\CMakeLists.txt : C/C++ debug|armeabi-v7a : Could not get version from cmake.dir path '"C:\Android\android-sdk\cmake\3.19.0"'.
I removed the quotes from cmake.dir path in local.properties and this error was gone, next I got another error:
Code:
exception while building Json $C:\Users\User\Documents\B3d\tv\.cxx\cmake\debug\armeabi-v7a\compile_commands.json (The system cannot find the file specified)