I'm trying to create an emulator by choosing emulator-x86.exe from tools folder. Whenever I created I'm getting the below error, and emulator is not getting created. Whats is the issue?
Ant build error=Execute failed: java.io.IOException: Cannot run
program "${emulator.dir}\android.bat" (in directory "ECLIPSE_PATH\configuration\org.eclipse.osgi\bundles\370\1.cp\emulators\android"):CreateProcess error=2, The system cannot find the file specified
Please help me friends
you can follow this tutorial or
do like this
hw.lcd.density=252
sdcard.size=32M
skin.name=NEXUS-ONE
skin.path=platforms/android-10/skins/NEXUS-ONE
hw.cpu.arch=arm
hw.keyboard.lid=no
abi.type=armeabi
hw.keyboard=no
vm.heapSize=24
hw.ramSize=256
image.sysdir.1=platforms/android-10/images/
Related
I can use Android Studio at beginning when I first installed it. But the below issue showed up when I set SDK environment to the SDE zip folder. I can't open Android Studio at all afterwards and this issue shows up every time.
https://code.google.com/p/android/issues
Error:
Internal error. Please refer to https://code.google.com/p/android/issues
Stacktrace:
java.util.concurrent.CompletionException: com.intellij.diagnostic.PluginException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator' [Plugin: org.jetbrains.android]
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)
at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
I've tried to add 'disable.android.first.run=true' to idea.properties.
I also tried'netsh winsock reset' in the terminal under Administor.
These two ways all failed. It can open at the beginning. Just after setting the SDK environment.
I am using Delphi 10.2 Tokyo. I want to develop on my new Android Pixel. After installing the necessary programs, etc, I try to compile a simple "Hello World" program, but always gets this error message:
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidNDK-9c_x86\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: fatal error: .\Android\Debug\libAndroid_Test_Proj.so: open: Permission denied
Are there any solutions?
My problem was solved my moving my project folder from the above mentioned location to a folder directly in the root (c:\mobiledevelopment).
I have tried something like this before. I had a sqlite database located in the debug folder of my default project folder. I got an error telling me that the database was locked. When I moved the databse to a folder in the rootdirectory (c:\sqlite) the problem was solved.
An explanation of this would be most wellcome!
Best regards
Lars
I am trying to develop an android application with SDL and have been following this tutorial.
http://lazyfoo.net/tutorials/SDL/52_hello_mobile/android_windows/index.php
I followed this tutorial on my laptop earlier and actually completed the tutorial successfully until my laptop stopped working due to a battery issue.
I decided to just do the whole tutorial again on my main pc. This was going great until I reach part 15 in the tutorial. After following this tutorial's advice successfully I get a new error message upon building the project.
This error message is... interesting. You can read the bulk of it here.
Execution failed for task ':app:externalNativeBuildDebug'.
Build command failed.
Error while executing process E:\androidsdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\androidprojects\game\app\src\main\jni\Android.mk NDK_APPLICATION_MK=E:\androidprojects\game\app\src\main\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=E:/androidprojects/game/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\androidprojects\game\app\build\intermediates\ndkBuild\debug\lib E:/androidprojects/game/app/build/intermediates/ndkBuild/debug/obj/local/x86/libmain.so}
'C:\Users\DAD' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'C:\Users\DAD' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
make: *** [E:/androidprojects/game/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/main] Error 1
The most important part of the error message seems to be this:
"C:\Users\DAD is not recognized as an internal or external command, operable program, or batch file. The system cannot find the path specified"
This repeats about three times. My username on this pc is "Dad & Mom" which has two spaces in it.
The android NDK does NOT work if it is installed to a path with spaces in it. I knew this and installed the SDK and NDK to the path "E:\androidsdk". I have checked and the program understands that the sdk is there.
So.. Why am I getting an error related to my username? My username on the laptop which I successfully completed the tutorial on earlier had no spaces in the username.
This is the issue I need help with. How can I remedy this? I'm willing to provide any extra information, just ask.
I don't know what exactly went wrong here, but here is how you can try to figure out yourself. First, check if this is reproduced on normal command line (copy all the long command
E:\androidsdk\ndk-bundle\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\androidprojects\game\app\src\main\jni\Android.mk NDK_APPLICATION_MK=E:\androidprojects\game\app\src\main\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=E:/androidprojects/game/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\androidprojects\game\app\build\intermediates\ndkBuild\debug\lib E:/androidprojects/game/app/build/intermediates/ndkBuild/debug/obj/local/x86/libmain.so
and run it from
E:\androidprojects\game\app>
prompt.
Second, add -n to thus command, and you will see all commands that ndk-build wants to invoke, and then we'll discover where it wants to acces your home directory.
Change the SDK location to c:"AndroidSDK" path.
Watch the warning on bottom
I'm new to android. I have some java knowledge (not extensive), and I've done some of the android tutorials.
I'm trying to use osmdroid at the moment, I just want to get the map to display.
I'm using the code from here: Help setting up OSMdroid library for displaying OpenSourceMaps. But when I try to run it (on a virtual device with the correct API level), the console sayes:
[2012-02-03 17:24:06 - osmtest] Failed to install osmtest.apk on device 'emulator-5556!
[2012-02-03 17:24:06 - osmtest] (null)
[2012-02-03 17:24:06 - osmtest] Failed to install osmtest.apk on device 'emulator-5556': EOF
[2012-02-03 17:24:06 - osmtest] com.android.ddmlib.InstallException: EOF
[2012-02-03 17:24:06 - osmtest] Launch canceled!
I still find logcat quite confusing. It sayes: PID 90 tag installd 'Couldn't openat cache: No such file or directory'
What could be the problem here? Something I've done wrong with the avd?
How could I get more useful information from logcat?
Solution I hadn't included slf4j in the build path. :)
So for anyone else with this problem, you download the jar from here: http://www.slf4j.org/android/
and then include it in your build path in the same way you did for osmdroid.jar
(ie. create a lib folder in your project and put the jar there)
I want to mark this question as answered, though I solved this myself in the end.
I didn't have slf4j included in my project. :)
I have Jenkins-CI compiling an Android app I'm working on. Compiles it great but it will not upload the release apk via SCP. I have set the source to bin/* and it gives me the following error. Does anyone have a suggestion on what I have configured wrong? I've had it working in the past, but I forgot to get the config before I re-installed Fedora on the machine.
[SCP] Connecting to smccloud.com
ERROR: Failed to upload files
2: No such file
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2289)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1741)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1758)
at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1715)
at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:188)
at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:218)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
at hudson.model.Run.run(Run.java:1400)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)
Build step 'Publish artifacts to SCP Repository' changed build result to UNSTABLE
I encountered this error when I was trying to copy to a directory that didn't exist on the target machine. Create the directory(s) on the target first and this should go away and the copy work.
On the target machine you are seeing something like:
No such file or directory
when you try to navigate to the non-existent directory.
If the plugin isn't working for you can use the shell script with expect, as a post build step, to do it for you.