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
Related
Using the android sdk(adt-bundle-windows-x86-20130729), appiumforwindows+0.8.3, when ran an appium test on android emulator with selendroid capability, it gave "aapt" not found error, so copied the aapt.exe&lib to platform-tools folder in sdk dir. this error got fixed but giving error,
"original error: platform doesnt exist android-4.2"
i understand it could be selendroid/android issue; really appreciate if anyone can suggest any thoughts to fix this error..
For some reason, selendroid is looking for Android 4.2 and i had 4.3 installed. Installing 4.2 as well is the solution.
I ran into the same problem some time ago, the solution for me was to install the Java SDK and the Android ADT-Package into a location without any blanks.
Before it was on "C:\Program Files...", which caused Appium to not find the aapt.exe, although the ANDROID_HOME and the Path Variables were set correctly. I found a hint about that somewhere on the Appium Github.
If you use selendroid directly, lately improvements especially for Windows has been added.
The support for blanks in folder names is build in the current version 0.7.0:
https://github.com/selendroid/selendroid/releases/download/0.7.0/selendroid-standalone-0.7.0-with-dependencies.jar
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).
I'm trying to use the stella SDK to convert my iOS app made in cocos2d 1.1 rc0 to an android project. When I use the method on here: http://www.yeecco.com/support/docs/getting_started#portingiosprojectswithstellasdk
I get the error: Lexical or pre-processor Issue: 'GL/gl.h' file not found
This occurs even when I follow part one of the tutorial in which you convert the GLSprite test project to an android project. I have no idea how to solve this issue, especially as the issue is occurring in the same file that it says isn't included!...
Here's a screenshot
The problem has been tearing me. And I finally found the SDKROOT should be OS X 10.7 .
Set TARGETS-> Build-> Settings-> SDKROOT-> OS X 10.7.
And then install X11 http://xquartz.macosforge.org/landing/
after installing, you log out of account from mac, log in again and run this project.
That's all!
I found a fix.
On the Xcode project generated by StellaSDK, set the Base SDK for the target to OS X 10.7. Then add this to the “Header Search Paths” field in your target's build settings:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include
You will also need to install XQuartz following Apple instructions for it to work.
Cheers!
I'm trying to build the V8 javascript engine for Android but I can't succeed for some reason. I follow the instructions given here. It all starts very well. I can issue the make android_arm.release -j8 command from my terminal and it seems very sweet for a while. Then suddenly I get this output:
/bin/sh: 1: /home/dbm/android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/*-ar: not found
The statement is correct: there is no *-ar file at the specified location.
But what is an *-ar file? And how can I resolve this error?
The environment is a beast running Ubuntu 12.10 on a 64-bit architecture (with ia32-libs installed) and I build for/with/against Android NDK r8c.
There seems to be a problem in Ubuntu!?
Anyway - extracting via tar -jxf worked for me. See http://code.google.com/p/android/issues/detail?id=41187
The issue lies with the fact that the NDK build system prefixes the platform name to the commands that are run to build the source. If you notice the error you get, the correct platform prefix is missing from *-ar. Somehow, the platform name is being set to * instead of the correct prefix arm-linux-androideabi (giving the correct name arm-linux-androideabi-ar). You'll need to figure out where this information is being skipped. That should fix your problem.
PS. If I get some free time, I'll try and replicate your issue and see if I can give you the exact fix.
Use the 'tar -jxf' to extract the android ndk. If you use the 'Extract here' option, it seems to be leaving out some files.
ar is archive utility from gnu tools. Normally you should have a $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-ar available in your tool chain. which looks like missing in yours.
When trying to build in MonoDevelop with Mono for Android I get this error. According to the debug it is not located in my code so im left clueless. Any idea?
Error MSB4185: The function "CurrentUICulture" on type
"System.Globalization.CultureInfo" has not been enabled for execution.
(MSB4185)
I own MSBuild (and this code). It's an error originating in the file microsoft.csharp.targets, as the error message probably says. In there is a property function:
$([System.Globalization.CultureInfo]::CurrentUICulture.Name)
What the error means is that it thinks that this function isn't in MSBuild's "safe list". These are selected functions that have no side effects. (If you want to use any function, you must have an environment variable MSBUILDENABLEALLPROPERTYFUNCTIONS=1).
I really don't know why this would appear unless somehow you're using the 4.5 microsoft.csharp.targets with the 4.0 microsoft.build.dll (which didn't have it in the safe list). I haven't received reports of this except in connection with Monodevelop.
Excuse my naivety, but I'm assuming Monodevelop is using the Microsoft .NET Framework with the Microsoft MSBuild and not a reimplementation of that.
Dan
The working solution for me is this:
Open a CMD and run this command on it: setx MSBUILDENABLEALLPROPERTYFUNCTIONS 1
Another solution I think is available is installing Mono Runtime and set it as your default CLR runtime from Tools -> Options -> .NET Runtimes.
After uninstalling .NET Framework 4.5 RC from my Windows 7 machine, this error disappeared.
Of course make sure you have valid .NET runtime after you uninstall 4.5.