ti not recognized as internal or external command - android

I am developing Android applications using appcelerator. I am trying to build it through command using
titanium build -p android -b
argument.But it show 'ti'not recognized as internal or external command error.
The app run fine on emulator.I need to build it through command or on device.But my device also not accessing on Appcelerator.
Please help me to troubleshoot ti issue on command prompt.

are you using it in Windows OS? You probably did not configure the development environment properly.
You should follow this guide: http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration
and in particular the Software Locations and Environment Variables:
http://docs.appcelerator.com/platform/latest/#!/guide/Software_Locations_and_Environment_Variables

Related

Testing ionic2 in a real android device

I've built an app using ionic2 + cordova, now I am trying to run this in a real device. I have already set up all the things I had to, such as: %JAVA_HOME%, %ANDROID_HOME%, %ANT_HOME% and all the paths as well. However, as I try to run the command: ionic cordova run android, I recevive this error: "CORDOVA IS NOT A VALID TASK".
When I run: "ionic run android" I get this another error: "No emulator images (avds) found, if you would like to create an
avd follow the instructions provided here:
http://developer.android.com/tools/devices/index.html
Or run 'android create avd --name --target '
in on the command line."
Please, I am new in the mobile world, so I thought about starting a small POC, but I am not even being able to run this in my cellphone. Could someone help me out in this issue? I would appreciate it
ADB only recognizes Android devices, and in order for it to recognize your device you need to enable Debugging Mode on the Developer Settings of the device. Check out this tutorial.

Why can't my haxe / openfl app install and launch on the android emulator

I have the following haxelibs installed
openfl 4.4.1
lime 3.4.1
I have a very basic hello world application that I've successfully tested on ios by running the following command
openfl test ios -simulator -Dsource-header=haxe
If I run the following command openfl test android -emulator everything seems to work and the emulator does launch however the openfl application doesn't seem to install and launch and the console is stuck waiting for the app to launch in the emulator.
I tried running openfl setup android so my Android sdk and ndk are install in the root /opt directory. I should also mention that I have Android studio installed. Android Studio seems to be using the same SDK and NDK directories.
Here is the console output that I get from the openfl command.
BUILD SUCCESSFUL
Total time: 17.104 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.or
g/2.10/userguide/gradle_daemon.html
Usage: adb devices [-l]
Starting AVD: Nexus_4_API_24
Usage: adb devices [-l]
.Usage: adb devices [-l]
In looking at openfl project.xml documentations I found that if you are using the <certificate/> and you have not defined a path= param then building for android will fail. So until I have a google play account with a valid cert generated I will do the following so that I can develop for both ios and android.
<certificate team-id="" if="ios"/>
As you can see I added the if= so that the cert settings will only be used when building for iOS.

How to run command 'ionic run android' on specific device?

I have 2 devices detected in adb. One from my genymotion, and the other from my real device :
$ adb devices
List of devices attached
192.168.57.101:5555 device
e78ab88d device
I want to run my ionic app on e78ab88d device. How can i achieve this?
If i run ionic run android, its automatically run on my genymotion device. It says, no target specified.
img no target specified
What command to run on specific device?
run with target device id, something like :
ionic run android --target=e78ab88d
EDIT
With new Ionic 3 CLI use :
ionic cordova run android --target=e78ab88d
For list of all available devices, use :
ionic cordova run android --list
try this command may help you
ionic run android --e78ab88d
Using --target=e78ab88d failed for me. But it seemed to work when I used --device=e78ab88d.
Basically I have 2 Android phones connected and I wanted to target a specific device. without the --target or --device, it deployed randomly to the devices.
ionic cordova run android --device=e78ab88d worked for me. Just in case someone is experiencing the same problem as me.
to also run the app live do.
$ionic cordova run android -l
make sure that the phone is connected with laptop through cable.

Launching Android Open Source SDK from Eclipse in Linux

I have downloaded Android Open Source Project and build it in Linux from command line. All are fine. I can use the emulator.
I installed also Eclipse and AVD via eclipse. Now I want to use the open source emulator that I build from command line. How can I do that?
Mahbub
From the shell in which you build AOSP you can run emulator and it will start an emulator which it built as part of AOSP along with the system image created in your AOSP build. You can also use the SDK provided emulator by passing it command line arguments for the kernel, init RAM disk, system partition and data partition.

installing and running a script file on android emulator

To make use of ASL library for my screen shot app on android,i need to install a script file (run.ps1) and run it on emulator ... So can any one tell me how can i do it...should i do it using ADB or using Eclipse...?
A .ps1 file appears to be a PowerShell script. PowerShell is a Windows application. Android is not Windows. Hence, if it is indeed a PowerShell script, you cannot run that script on Android.

Categories

Resources