Titanium mobile publish apk error message - android

I have trying to publish android apk file from Titanium studio but the studio is giving me error.
[ERROR] Program launch failed. Unable to locate Java VM. Please set JAVA_HOME environment
variable.
[ERROR] Unabled to prepare JavaScript for packaging. Error code 4.
However everything is working fine in emulator. Plus Java home variable is set and i have also tested it with HelloWorld example.
Can anyone help

I guess you had a look at how to set up Titanium Studio and SDK. Please ensure that your also set all the all the environment variables especially those related to Android SDK. Finally you should check that you run the correct versions of all required parts. You need Java 6 32bit on Windows for instance.
If all this doesn't help please provide the build.log (in your project folder) and the results of the diagnostic test (Help -> Titanium Studio -> Run Diagnostic Test) and also provide the general log file (same menu as test).

Related

I am learning to use push notifications on Android and cannot build the sample Twilio app

I followed the tutorial on https://www.twilio.com/docs/notify/quickstart/android, but got stuck on the Set up the Twilio Notify sample Android app step. Android Studio (Bumblebee v2021.1.1 Patch 2) says
The project uses Gradle 4.4 which is incompatible with Java 11 or newer.
and gives me the option to Upgrade Gradle wrapper to 4.8 version and re-import the project, which I did. However, the "Gradle project sync" (whatever that means) fails with
FAILURE: Build failed with an exception.
Where:
Initialization script '/tmp/ijinit.gradle' line: 43
I have next to zero experience with Android Studio and Java (my actual goal is to build an Ionic app in JS and avoid AS as much as possible – I prefer to stay in Emacs & shell), but I figured I should start with the stock tutorial app to get it working.
Is there anything I'm doing wrong? I don't even know what information I should provide to help with debugging of this issue...

Exporting a build from Unity to Android fails

I'm new to coding and to Unity. I've followed the step-by-step found in this google page. I have installed all the SDKs and the latest versions of Unity and Android Studio for mac OS.
Everything goes according to plan and I get to the final "run and build". It connects fine to my Note 3 and runs almost to the end when I get the following errors:
Error message window
Assets/GoogleVR/Scripts/VRDevices/GvrDevice.cs(99,10): warning CS0618: `UnityEngine.GL.IssuePluginEvent(int)' is obsolete: `IssuePluginEvent(eventID) is deprecated. Use IssuePluginEvent(callback, eventID) instead.'
and
CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java
-Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Bruno.Vilela/Library/Android/sdk/tools"
-Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar"
-
I have tried all that I am able to and have found no way around this. I am simply not versed enough in C# to debug this on my own. Any help will be greatly appreciated!!
SPECS:
Macbook Pro running OS X 10.10.5
Unity 5.3.4f1 Personal
Android Studio 2.1.1
Galaxy Note 3 running Android 5.0
Cheers!!
-BV
This might be caused due to having duplication jar files in your project. check if that is true, try removing any duplication and building the project again.
some similar reference : http://answers.unity3d.com/questions/765961/multiple-plugin-conflict.html

Cordova debug: the specified file was not found

I'm working on a Cordova project for Android using Visual Studio 2015. I can build my project without error and I can deploy it on Ripple.
But when I want to deploy on a real device or on an emulator, I'have always the same error: the specified file was not found. No more information in error list or output (using diagnostic output).
When I try to deploy on the emulator, the emulator receive the application and I can use it but when the app is lauched I have a pop-up from Visual Studio: "the specified file was not found" and I can't debug.
When I try to deploy on a real device, I have directy a pop-up: "there were deployment error. Continue ?" if I click on "yes", I have the popup "the specified file was not found".
I would like to have a solution and an explanation about this error.
Thank you in advance, I can't work with this kind of error except deploying on emulator and don't use debugging...
It seems like you are missing a third party component (such as Android Studio), so Cordova is creating an Android project, but Android is not compiling that project into an Android app. That's why it deploys on Ripple (which just uses the first half of the build) but fails on the second half. I'd make sure that you do have Android home set up (check the path in Tools->Options->Tools for Apache Cordova). Otherwise, feel free to email your question + current project to vscordovatools#microsoft.com. I can take a look at it on my machine.
Linda Zhong, Tools for Apache Cordova PM
Lizhong#microsoft.com

Titanium Studio: Application Installer abnormal process termination. Process exit value was 1

I've tried running a proyect on Titanium Studio along with Genymotion following these guides:
http://docs.appcelerator.com/titanium/3.0/#!/guide/Setting_up_Studio(For Titanium Studio, I tried it by pre-installing the prerequisites before Titanium Studio's installation, and by letting it automatically install them)
https://wiki.appcelerator.org/display/guides2/Installing+Genymotion(For Genymotion)
I installed the Android SDK's via Titanium Studio(I've tried different combinations).
I've tried running a proyect that is error free(the whole team can run it perfectly) and also I've tried running the default classic proyect on Ti Studio, and also the Alloy default template.
But whenever I run it, I get this message:
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] : Failed to package application:
Every single time. I've tried installing in different ways, different combinations and yet I've been unable to resolve this issue.
I've also researched online but I haven't found a solution yet, I've been stuck with this for 3 days. I also installed it on two different OS(windows 7 and windows 8) with two different laptops. The windows 7 had an issue with an AV that didn't add the path to the PATH environment variable. That has been solved, but I'm still with this problem.
Here's the full log(it's short) running on Trace level:
http://pastecode.org/index.php/view/55798735
Any help would be appreciated
Already solved it. It was that the latest build tools apparently had no compatibility with Titanium so I had to uninstall it and install a previous build tool. This is the link where I saw it: developer.appcelerator.com/question/178514

How to configure Titanium Mobile Studio to work?

It will sound silly, but I've installed Titanium Mobile Studio on my PC, following its in-depth guide from here
I also have configured Andrid SDK correctly and set my PATH variable to include jdk-path, which have jarsigner,javac. But when I am running the project Kitchen Sink, its giving me following errors in console:
Required jarsigner not found
*Required javac not found*
Required java not found
**One or more required files not found - please check your JAVA_HOME environment variable**
Can anyone resolve this??
According to my knowledge cause of this type of errors in titanium are,
IF you are using java version 64 bits than this type of error may occur because titanium works on 32 bit only.
Java version should 1.6.. Titanium not supporting java version 1.7.. If you using 1.7.* java version than give a try to last update of 1.6.*
Java path setting is incorrect. try to check using java -version.
Did you set JAVA_HOME with environment variables. If not please follow this link and and try running app again,
http://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows

Categories

Resources