Appcelerator/ Titanium Alloy - No Andriod SDKs were found under the specified SDK Location - titanium

I am running Appcelerator on OSX.
When I try to set up an emulator on the Appcelerator IDE, by clicking:
"Run Configurations..." >
"Appcekerator Android Emulator - appname" >
"Emulator"
On the bottom of the screen it shows up with an error message saying:
Problems detected with the SDK settings. Click here for details
Upon clicking for more details, it shows the error message:
An error was detected with the SDKs configuration
Reason:
[Android SDK Home] No Android SDKs were found under the specified SDK location
The value i have put for Android SDK home was:
/Users/username/Library/Android/sdk
How do I solve this issue?

Instead of using the Emulator which are slow and heavy in terms of Memory Usage, I would suggest you to use the GenyMotion for Android which is quite fast and easy to use and has close features to a physical device.
But First this First, setup the Android SDK for Appcelerator through Preference > Platform > Android and browse the Android SDK folder and Android NDK.
Note : This can be anywhere in the system folder.
You can download the GenyMotion Tool from the below link : https://www.genymotion.com/fun-zone/
Setting up the tool is quite simple and is given in the image itself.
Good Luck, Cheers

I had the same problem as above. I did move my Android SDK home out of '~/Library/' folder.
Previously it was:
'~/Library/android-sdk-macosx'
Then i moved it like:
'~/android-sdk-macosx/'
Most probably, the Library folder not visible to AppceleratorStudio. My guess.
Thanks a lot, guys.

Related

Expo-react-native :Couldn't adb reverse: device 'adb' not found

I am using react-native-expo for mobile app development.
I use an android emulator for the app, vscode editor for development.
It started showing me this error from few days.
› Opening on Android...
Couldn't adb reverse: device 'adb' not found
› Opening exp://10.0.46.81:19000 on Device adb
Couldn't start project on Android: Error running adb: device 'adb' not found
› Press ? │ show all commands
I tried wiping the emulator, tapping on the build number in the emulator, but nothing worked out.
I've deleted the virtual devices and created new one. It worked for one time and again this process isn't working.
there isn't much about this on the internet.
need help.
Just try this. It is work for me.
make sure you already add android sdk path in setting > appearance & behavior > system settings > android SDK > android SDK location
(Common path is C:\Users(name)\AppData\Local\Android\Sdk)
create new variable name and value in Environment Variables (User Variables)
(ANDROID_HOME C:\Users(name)\AppData\Local\Android\Sdk)
add new Path in Environment Variables (User Variables)
(C:\Users(name)\AppData\Local\Android\Sdk\platform-tools)
It is work for me after I have solved it for 3 hours.
At first, I don't face the problem like this in flutter but in react-native.
The fix for me was to install the SDK Platform for the android version used by the AVD.
In my case, I installed android v9 (Pie) via the AVD Manager when setting up my AVD for the first time, and when I looked into this issue I noticed that the SDK Platform for v9 was not installed as part of that setup.
The exact steps I took are as follows:
Disclaimer: You might not need to follow these steps exactly to resolve the issue
Close all CMD and IDE programs.
Open Android Studio and navigate to AVD Manager
Click the down arrow for the target AVD and click the Edit option
Set the device to Cold boot instead of Quick boot
Open SDK Manager, and download the SDK Platform for android version used by AVD
Go back to AVD Manager, click the Cold boot now option
Open a CMD terminal as administrator, CD to project repo, and run expo start
Launch expo in AVD
DONE
I had the same problem. Emulator started working after this:
Delete caches from Android Studio
Wipe data from your emulator
Cold boot to restart
When I was solving this problem I also ended up doing these:
Check Android studio updates
Reinstalled Android studio
Check SDK updates from SDK tools: SDK Manager -> Android SDK -> SDK tools. You can see if there is a new update available on the right.
Go to Virtual Device Manager -> Select your Device -> Actions -> Click "Drop down" button and select "Cold Boot Now".
This worked for me.
For my case, I went to the avd and simply clicked "wipe data", restarted both my avd and server and it worked
By my side the problem was is In Internet Connection. I just changed the WiFi and everything working fine.

React Native project dont run on a android emulator (android studio)

I have made android emulator and other things properly but nothing really works for me. It says,
Couldn't start project on Android: The system cannot find the path specified
I am using windows 10 as operating system.
I also had the same problem.
check your ANDROID_HOME variable in advance system setting.
It must point to your SDK: C:\Users\$USER_NAME\AppData\Local\Android\Sdk

how to update Google Play service on Emulator android studio

I got the Key and set restrict, but I still cannot open map on the Emulator. On the build.gradle, I saw that the google play service is 9.8.0 now, and I think this is the newest one. However, when I run the sample-app, it say I need to update Google Play service?
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-maps:9.+'
}
I check on the Android Emulator that it doesn't have Play store. Is it the missing one? I follow this link
https://developers.google.com/maps/documentation/android-api/start#step_2_install_the_google_play_services_sdk
to install Google Play services but I cannot found anything that can help. My Android studio version is 2.2.2.
I download the GooglePlayServices apk file (com.google.android.gms-9.8.77-440-135396225-APK4Fun.com), I dragged and dropped it into emulator to install, but it has error
Error: INSTALL FAIL INCOMPATIABLE
W/GooglePlayServicesUtil: Google Play services out of date. Requires 9877000 but found 9683470
I need your help.
After 3 days of searching. I found out that the Maps is unavailable to display on Emulator this time. All we have to do is run app on physical device and it will work.
You need to change on build.gradle for the following:
compile 'com.google.android.gms:play-services:9.0.2'
First, try to check your SDK Manager if the Google Play service there is updated. Also, try to open the stand alone SDK Manager and update the Android SDK Tools, The Android SDK Platform-tools and Android SDK Build-tools.
To update the Google Play service in the emulator itself, check this SO question. It will explain you on how to do this.
Another possible reason for this issue if you uses play-services:9.8.0 is found in this thread. It is stated here that the updated Android tools (which contains the Android Emulator system image) aren't out yet. So in the meantime, try to use downgrade version of play, service instead of 9.8.0.
For more information, check this documentation on how to setup Google Play Services
In the Android SDK Manager, you must install "Google APIs (x86 System Image)" under "Android 4.4.2 (API 19)". Quit Eclipse and restart it.
Then create a new android virtual device in AVD manager and choose "Google APIs x86 (Google Inc.) - API Level 19" as target. Check "Use Host GPU" to ensure the drawing of the map will be accelerated.
That's it, this new emulator will have Play Services preinstalled and it will run faster because it's a x86 image.
Yeah, Thank you guys. I can make it work on Emulator now. I use the
compile 'com.google.android.gms:play-services-maps:9.6.0'

Apache Cordova not Allowing me to run in visual studio

Every time i try to create a new app ( trying to look at cross platform apps) in visual studio I get this error:
I have installed the android SDK , is there something else I should be installing?
Thanks
It seems you installed the android SDK but didn't run it to install the platform tools and the SDK APIs.
Run the "android" command on your computer, it will start the android SDK manager.
Then you have to install The android SDK tools and android platform for at least SDK 19.
One quick way is to just click the install button on the bottom right of the window, it should install automatically the latest SDK tools and paltform tools.
If you're short on disk space I recommend you uncheck all that's not usefull if you only want to use Cordova and not plan to do native dev :
the samples
the system images (unless you want to use the emulator, in this case just install one, don't need all)
the documentations
This is simply telling you that the x86 emulator system image is missing. If you do not plan on using the Android Emulator or will only be using an ARM image, you can ignore this warning. We're working to ensure messaging is more nuanced in this area in the future.

Titanium app immediate crash on BB10.2

I've been developing an app with Titanium, and I've got the app up and running on both iOS and Android.
Today I set up the Blackberry 10 environment to be used with Titanium and tried to compile and deploy to the simulator... It worked! But alas, after a brief peek at the appcelerator splash screen, the app crashes; all without any errors, warnings, or logs of any kind.
I've used telnet to see if there were any logs in the '1000' directory, and the logfile was empty for my app.
From what I've read in appcelerator's documentation and what I've discovered in the Titanium Studio software, Blackberry debugging support is not included.
Further information: I'm using the Parse JS library (not as a titanium module, just as a JS import) and my main window contains a TabGroup.
If anyone has any experience in Titanium for BB10 or insight as to what may point me in the right direction, that would be amazing.