Eclipse Kepler crashes when creating new Android Application Project - android

As the title reads, it crashes every time I make a new android app project. It seems to run fine when I make a new Java project, however. The error code i get is: Java was started but returned with exit code: -805306369.
That's all I could post, i can't seem to copy the error message (it's a pop-up, doesn't appear on console)
Just as it's about to load the project, eclipse goes Not Responding for a long time, so I'm forced to close it and I get that error message.
Any help would be appreciated, thank you.

If you're using Eclipse to build Android, do the following in order:
Install the JDK from Oracle. You can get the JDK here.
Install Eclipse (e.g. Eclipse Standard version). As of November 2013, Juno (Eclipse v4.2.2) is the most stable release of Eclipse. Refrain from using Kepler release for now. You can get old, stable release of Eclipse here. Or, new version here if it is stable. Important: When you install Eclipse, do not overwrite an existing Eclipse installed directory but instead create a new directory and install Eclipse there. This would prevent getting libraries mixed up between different versions of Eclipse.
Install the Android SDK. You can get the SDK here. For beginners, choose the installer_r22.3-windows.exe package.
Install the Android Development Tools (ADT). You can get the ADT here.
Start Eclipse.
From Eclipse's menu, select Window | Preferences. Then, select Java | Installed JREs option. Check to see if Eclipse has listed correctly the JDK installed directory created from step 1 above. If not, click Add button and browse to your JDK installed directory. On Windows, this directory is normally found under C:\Program Files\Java\jdk1.6.0_45 (e.g. Java 1.6 release 45).
In Eclipse's Preferences screen, select Android option and check that the directory of the Android SDK Location is correct. It should be correct if you have successfully completed step 3 above.
To create a new Android project, from Eclipse's menu select File | New | Android Application Project. Fill in the required information in the New Android Application screen and click Finish when done.
OPTIONAL: Under Eclipse's Window menu option, there are two Android submenu options: Android SDK Manager and Android Virtual Device Manager.
a. The Android SDK Manager option allows you to install/remove versions and/or components used for Android development.
b. The Android Virtual Device Manager option allows you to create virtual Android devices for development and testing purposes. For example, an Android virtual device with a Target of Android 2.1 - API Level 7 will allow you to test your Android application that will later run in production on devices - phones, tablets, notes - that run Android firmware version 2.1.

Related

Uno Platform Missing emulator list in debug targets for SDK style projects

Having
latest Uno templates,
all green uno-check,
latest VS 2022 preview (17.4.0 Preview 1.0).
Creating new Uno app (either via commandline or selecting from the new project wizard) including Android head - which is the new SDK style project, I'm unable to start the app in an emulator. It's missing and the VS complains either of:
Please select a valid device before running the application.
----------------------------
Microsoft Visual Studio
---------------------------
Unable to start debugging. The startup project cannot be launched. Ensure that the correct project is set as the startup project. The startup project can be changed by selecting the 'Set as Startup Project' command from the right click menu in Solution Explorer.
Additionally make sure its debug settings are correctly configured in project properties.
---------------------------
OK
---------------------------
When using the old non SDK style Android project, e.g. from Uno.Samples, on the same setup, it won't compile though (until <LangVersion>preview</LangVersion> is added to the .csproj file). Anyway, after that, the list of emulators is available and the project can be started on a selected emulator.
Is there any magic I could do on the new SDK style project to have list of emulators to debug the app on?
There is probably an issue in the Visual Studio itself (no relation to Uno). Using 17.3.1 release (not preview):
shows the emulators,
creates some changes in the project upon load (.vs binary content also as new <proj-name>.user file),
allows the project to run.
Interestingly enough, such modified project then works also in preview (although the emulators are still not listed explicitly), even after the .user file is deleted.

"[PAClient Error] Error: E0002 Missing profile name" error when running my application on a Phone connected via USB

I am trying to to run a application on my android device. The issue is that I get the PAClient error E0002 From my understanding profile names are only needed when running apps on Remote Devices, which I'm not doing. There are no profiles created for the PAClient and even if i try to create one the only option is Widows 64 and 32-Bit
I recently reinstalled the Android Common Files from Tools -> Manage Platforms. That could have something to do with it. I know there is another post here, but that post has no working answers.
Also here are my computers environment variables
My platform selector
So how do I fix this error?
The Answer:
The PAClient Error was caused by a compatibility issue with the device in question and the Android SDK Installed the computer.
To fix this issue go to C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\<Your Installed SDK>\ open SDK Manager.exe, remove the SDK installed (Ex: Android 10) and install the one corresponding to the Android Version on your phone (Android R Dev. Preview in my case). Then open Delphi, go to Tools -> Options -> Deployment -> Sdk Manager then change the path of the old SDKs to the new SDK path (They should have a exclamation mark next to them). Now the last thing you have to do is go to the Java Tab and change the Keytool and Jarsigner location to a valid one if its not already valid (something like C:\ProgramFiles\<your java installation>\<java jdk version>\bin\keytool.exe and C:\ProgramFiles\<your java installation>\<java jdk version>\bin\jarsigner.exe for the jarsigner).
That's all. Now you can compile & run your application on your device.
Note: You don't have to uninstall the old SDK if you still need it to make apps for other android versions. Only remove it if you don't need it.

Eclipse Luna - Android app wizard hangs on at the final step

On my Mac mini OS X 10.7.4, I have installed Android SDK which contains all API's up to level 19 (Android 4.4.2) onto the /usr/local directory (permissions set to 777) and I have Eclipse Luna (4.4.1) with ADT plugin installed and they all seem to work. When I select the 'Android Sample Project' option for platform 2.2.3 and create a Skeleton Application, it gets created and runs fine as an Android Application on my 2010 HTC Desire connected over USB debugging mode.
But when I select Android Application Project with those options:
Min required SDK: API 8: Android 2.2
Target SDK: API10: Android2.3.3
Compile with: API19: Android 4.4
Theme: Holo Dark
Create Activity: selected
The wizard hangs on after I click the finish button. The project is actually created and is available on the Package Explorer. If I return back to the first screen of the wizard, "A project with that name already exists in the workspace" is displayed. After I close the wizard and try to run the project as an Android Application, it contains many errors, here is the screenshot for clarity:
If I repeat the same steps with the Create Activity: not selected, the wizard closes and when I run it as an Android Application it says (headers truncated for clarity)
Uploading Sample.apk onto device 'SH11FRT01473'
Installing Sample.apk... Success!
/Sample/bin/Sample.apk installed on device
Done!
But I can't try or see this Sample app on my HTC device.
Need help and advice on this. Eclipse Luna is the greatest version of Eclipse for my version of OS X. Thank you.
After some searching I've noticed that the problem didn't depend on the Eclipse Luna. It was rather a problem with the Android SDK itself. Because the Android application I wanted to build was target Android2.3.3, it needed the so-called ActionBar support Library. But the Android SDK didn't contain that library and the Android SDK Manager didn't list it under the Extras folder so I had to install that library manually. I've downloaded the appropriate package from: https://dl-ssl.google.com/android/repository/support_r21.zip into my downloads folder ~/Downloads and installed it with:
tar -xvf ~/Downloads/support_r21.zip --directory
/usr/local/android-sdk-4-0-r15/extras/android/
After that, without restarting Eclipse, I created the Android Application Project without any hang-on.

Missing Visual Studio Android emulators from Cordova project targets

The last time I updated visual studio, I accidentally unchecked 'Android emulators' from the modules list, so they all got uninstalled.
Since I need them, I went and modified the installation from windows 'add or remove programs', checked and installed 'Android emulators' as a visual studio module, and all seemed fine.
But then, when I tried to build an Android version of my Apache Cordova app, I noticed that the Android emulators did not get added back to the target list. The Cordova project is set as a start up project.
I tried reinstalling the whole module and also reinstalling the device profiles, but they're still missing.
Is there a way to configure what devices/emulators show in that list?
Thank you.
So it seems like you are missing the Visual Studio emulators for Android, which we have pre configured to show a 5" and 7" option. A fresh install probably just missed that component (because its not automatically checked). Modify "Microsoft Visual Studio" from the Add or Remove programs menu, and check the VS Emulators for Android to add them to your version of VS. See the checklist image below for where the component is.
If you want to create a custom Android emulator yourself to show under "Google Android Emulator" (because that comes pre-installed), just make sure that your Google Android emulator is running the virtual device that you created, and on deploy your app should show up on that emulator.

Eclipse not running my android app

When I want to run an app to emulator , eclipse give me this error :
[2014-04-09 11:02:38 - ErsalNazar] Failed to create a Launch config for project 'ErsalNazar': Could not write file: E:\workspace.metadata.plugins\org.eclipse.debug.core.launches.
too show this dialog box sometimes
I am sorry for bad Language .
Create a new workspace and copy your project in this new workspace
This can happen when:
You have multiple copies of the Android SDK installed on your
machine. You're updating the available images and devices for one
SDK, and trying to debug or run your app in another. If using
Eclipse, take a look at your "Preferences | Android | SDK Location".
Make sure it's the path you expect. If not, change the path to point
to where you think the Android SDK is installed.
You don't have an Android device setup in your emulator. For solve this issue check http://techtraveller.blogspot.in/2009/07/android-fixed-unknown-virtual-device.html

Categories

Resources