Configuring android to work on appcelerator titanium - android

I am running windows 7, and am trying to configure android to work in titanium...
I have installed both 32 and 64 bit versions of Java... (android didn't seem to work with the 64 bit version)...
When you go to configure android from within titanium I am getting the following error...
Items required:
•Add-Ons Google APIs 7, Google APIs 8
When you then click install or update Android, Android SDK manager opens and selects what I need to install... I click accept and it downloads and installs...
However once that completes, I still have the same error when going back to titanium...
It should not be this hard... Any ideas?

I've had issues with the 64bit version. Have you tried uninstalling the 64bit versions of Java?
Also, have you run Android to update all the libraires?

I know it's an old question but in case anyone googles it like I have, this is what helped me:
make sure to install Google APIs at least for the latest Android SDK that you have installed
make sure to have Android 2.3.x installed. This is critical, Titanium Studio somehow couldn't link to my Android SDK (set outside titanium folder) even though I had half a dozen higher than 2.3 SDKs installed
restart Titanium Studio
Further more, in case this doesn't help, try clean-starting Titanium Studio, like so:
close Titanium Studio
go to your Titanium Studio installation folder (e.g. "C:\Program Files\Titanium Studio")
open TitaniumStudio.ini
copy these two lines at the beginning of the file:
-clean
true
save file and start Titanium Studio.
After succesfull operation you can remove those two lines from .ini file as they are not needed.

Related

adb.exe keeps crashing, even after all Android components are reinstalled

I have a major issue with Android development on Windows 7. I was working with some Nativescript app for about a month, until Android studio performed some routine update, few days ago. Since then, i'm unable to get the environment running: Every time i open the Emulator, adb.exe "stops working" after the phone loads. I tried following the steps recommended here: How to completely uninstall Android Studio from windows(v10)?
No success. I reinstalled Android studio and android SDK multiple times. I tried also different emulator images- same result.
I will mention, that my SDK was installed initially using choco, as instructed in the Nativescript docs:
choco install android-sdk -y
Now, every time i want to reinstall it, i need to add the --force flag.
Bottom line: How can i completely reset my system to the state before any Android development environment was installed, in order to rectify this situation? Following the steps in the above link didn't help. There's probably something interfering.
Any ideas? I cant develop anything...
Had the same issue recently, adb.exe just started and kept crashing after installation of some updates offered by Android Studio.
What helped was manual re-installation of platform-tools, back to version 28.
So steps:
1) https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip - download previous version of platform tools;
2) navigate to %AppData%\..\Local\Android\Sdk\platform-tools;
3) replace all files inside this folder with files from zip archive of version 28 downloaded in step 1.
Other steps I've tried before: full re-installation of Android Studio, SDK, emulators and so on, but I believe the actual fix was reverting back to platform-tools version 28.
After that my emulators (API 28, Android 9.0) went back to life.

Xamarin Blank Screen

I am trying to explore Xamarin, trying to create simple CURD project.
I was able to make some progress by watching youtube video's, but I am not sure what went wrong all of the sudden I am getting blank screen in my emulator when I am trying to deploy the project.
Firstly it showed me error stating
'the targetFrameWorkVersion is greater than my project version. You
need to increase the version for the project'.
I tried it, I increased my project version. This issue got resolved but gave birth new error.
Secondly
'To deploy this application, your deployment target should be running
Windows Universal Runtime version 10.0.16299.0 or higher. You
currently are running version 10.0.14393.2007. Please update your OS,
or change your deployment target to a device with the appropriate
version.'
I looked up for newer version of OS, but it seems my OS is already up to date.
I really appreciate if anyone help me out with tips or clue.
Environment is as follows
Visual Studio: 2017
Operating System: Windows 10
I am attaching ScreenShot of error
:
Try this
Set your android project as StartUp project
In your VS menu go to Build ->Configuration Manager
Uncheck the UWP project from both Build and Deploy, i hope your issue will be sorted.
first
its not your SDK, this is cause by old nugets in your project.
update all your nugets. at least xamarin.forms.dll
second
update your windows OS to latest. then
install appropriate microsft windows mobile sdk version. the link should appear when you right click your project and select install missing features
https://learn.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version

Android Studio 2 update not inside current program

I've got an issue with Android Studio: when there is an update and I want to install it in my Android Studio I must use web-link to get newest version. After I download it I got NEW Android Studio program in my computer, which I can run using android-studio/bin/studio64.exe. This is weird, cause I want to have update in Android Studio - which means initial update build-in my current Android Studio program`.
P.S. Website is something like this:
http://tools.android.com/download/studio/
or this:
https://sites.google.com/a/android.com/tools/download/studio/canary/latest.
I can only download it. Cannot update it via Android Studio...
Any ideas?
Normally you can update from within the IDE, but this is a preview version and somethings things go wrong, which was the case here:
Due to a bug, you can only patch from Android Studio 2.2 Preview 2, 3, 4 and 5. All other versions will need to download a complete install of the IDE.
Yes, with major updates of AndroidStudio, that's correct. Only minor updates can be updated from inside the studio.
First, make sure you know where your SDK lays. I'm just assuming the path to your studio installation is C:\Programs\android-studio
If your SDK is located in C:\Programs\android-studio\sdk (which it shouldn't be in newer versions), you have to copy that to any other location.
After that, rename your folder android-studio to something like android-studio_OLD. Then, copy the new version of android studio to your location (C:\Programs\android-studio).
Then you can try if it starts if you start C:\Programs\android-studio\bin\studio64.exe.
(Note: If you had your SDK inside your studio folder, you might have to enter the path to the new folder of your SDK for everything to work properly)
If the Studio is up and running as it should, you can delete android-studio_OLD.

Android studio gets stuck when updating SDK

It doesn't go past this:
Tried twice. Any ideeas why?
The integrated sdk manager is still not 100% reliable. Try to download it using the standalone sdk manager.
Now when Standalone SDK GUI is deprecated/deleted it's quite tricky to do it via command line. I've found another solution (for my problem) - delete problematic component through Android Studio SDK and install it again through Android Studio SDK.
This trick helps in my case which was problem with patching Google's API system image file system.img for Android 7.1 from revision 10 to 11 (patching stuck on that file)

Android SDK Installed, but adb.exe Missing

After my Visual Studio install suddenly lost the ability to deploy my Xamarin app to an android emulator, I decided to uninstall EVERYTHING (Visual Studio, Xamarin, Android SDK) and start over.
Everything has been re-installed, but the Android SDK does not include the adb.exe file. The place where I expect to find it is here:
C:\Users\costcopc\AppData\Local\Android\android-sdk\platform-tools\adb.exe
What went wrong? How can I fix this?
I opened a cmd.exe prompt and searched the entire drive (C:>) to find the file - it doesn't exist.
Re-Tracing My Steps
In case it helps, I will retrace my steps...
Uninstalling
I un-installed Xamarin first, according to instructions. I wanted a blank slate so, per those instructions, I also uninstalled:
Android SDK Tools
GTK#
I did not uninstall the Java SDK because, as my very first link explained, I had already used a system restore point to recover a stable version of the Java SDK.
Next up was Visual Studio. I used its installer for the uninstallation, and then I followed the post-uninstall "Secondary installer" instructions it gave.
Re-Installing
I re-installed VS 2015 first, then I launched the Xamarin Studio installer, which in turn installed the Android SDK for me:
With everything seemingly installed successfully, I launched Visual Studio and tried to open the Android SDK Manager with Tools -> Android -> Android SDK Manager.
It worked, but I noticed that a cmd.exe window opened and remained opened, containing a couple strange error messages.
There it is: "The process cannot access the file because it is in use by another process."
Despite the anomalies, I did use the SDK manager to install 4 more packages.
Still, I was feeling uneasy about the error messages so I figured it was time to reboot. After the reboot the situation became worse. Before, Visual Studio was at least able to launch the android SDK manager. Now it was altogether unable to launch it:
That oddball SDK path C:\Users\costcopc\AppData\Local\Android\ANDROI-1 had disappeared!
Xamarin Studio was also unable to launch the SDK Manager:
Now I chose to execute a Xamarin Studio installation "repair." Xamarin acted like the Android SDK was installed, and so it did nothing to fix it.
Again, what can I do to fix this?
I solved this issue by selecting Tools/Xamarin Account in VS 2017RC.
Then the browser opens, go into your account and download and install Xamarin from here.
I'd recommend you installing VS 2015 community ISO from here:
https://go.microsoft.com/fwlink/?LinkId=615448&clcid=0x409
after installation, open VS > tools> options > Xamarin , and check that your
SDK is detected successfully:
If something is not detected, then run android SDK manager as administrator then make sure that the SDKs are installed/updated correctly.
just Run visual studio as administrator and it will be solved(map directory up to end folder where actual tool are residing)

Categories

Resources