Stella SDK convert to android - android

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!

Related

I have an issue with pdftron integration

I have an issue with pdf tron sdk integration I 've tried alone and that did not worked so i tried to run one of their samples but I ve always had 5 failed to resolve file error. They're documentation is not easy to read AND I did not undersand how to integrate their sdk via gradle or manually (I ve tried both). So If some one Had fully integrated their sdk I hope if they could send me a git hub repositorie or help with my issue.
ps : I am on android studio 3.0.1
this is a screenshot: the error
To get the project running, you need to click Build -> Clean Project as described in step 4 of the tutorial: https://www.pdftron.com/documentation/android/guides/faq/run-in-android-studio/

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

Robotium: Could not find XXX.apk

I am very new to Robotium tool. I am facing issue for the execution of first test in Robotium. Please help
Step1:
I created Android virtual device in using eclipse and ADT.
Details: Android 5.1.1 - API level 22
CPU - ARM
Virtual device created and launched successfully.
Step2:
Then Installed application apk using command line
details: adb install path-of-apk\XXX.apk
Step3
Created Android Test project. Imported Robotium SOLO jar as external library.
Android.jar is under Android 5.1.1
Robotium jar is under Referenced libraries
Step4
Changed Target package to correct one captured from Hierarchical view
Step5
Created test class and tried to execute it using Android JUNIT
Error i am getting is
[2015-12-12 01:22:50 - Robotium_Calc] Android Launch!
[2015-12-12 01:22:50 - Robotium_Calc] adb is running normally.
[2015-12-12 01:22:50 - Robotium_Calc] Could not find XXX.apk!
Update: I am using Windows OS and Java 1.7
Sorry. May be this question has been asked several times here but i could not find solution which solve my problem.
Please help.
Thanks in advance.
Probably your .APK has not been generated inside /gen/bin/ folder, check first if your project doesn´t have any errors.
I you don´t have any errors just make a Refresh -> Build
it seems to be a problem with your Android configuration in Eclipse IDE. Try to solve by using solutions from:
Android Eclipse - Could not find *.apk
I'm not already using Robotium, but please check also a configuration for your Robotium library. Read (if you haven't done yet) this great tutorial:
http://www.vogella.com/tutorials/Robotium/article.html
EDIT: if you still not have a problem fixed read these:
https://groups.google.com/forum/#!msg/phonegap/ok44ta96GZc/YrNH3BKKVjgJ
http://mobilemancer.com/2010/12/01/could-not-find-yourapp-apk/
http://azeemhassan.com/find-helloworld-apk/
Well, according to this site I can say that is a quite often problem with Eclipse bad configuration
Thanks for your responses.
However i think i was facing the issue because there was incompatibility between eclipse, JDK and Android version i was using.
Initial config : Eclipse Indigo, JDK1.7 and Android 5.1.1 - API level 22
I changed configuration to: Eclipse Luna, JDK 1.7 and Android 5.1.1 - API level 22
So updating Eclipse to Luna solved my issue.

Exporting APK from eclipse (ADT) silently crashes

Every time I try to export an APK from Eclipse (tried Juno and Indigo) on Mac, eclipse crashes after a few seconds
This used to work fine on my current setup.
Running the app straight (debug mode) on my phone works fine.
The error from the console is:
Invalid memory access of location 0x10073f113 rip=0x101f656f7
Bus error: 10
I'm using Mac OS X 10.7.4 on a ~2010 MacBook Pro, with the following java:
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
I'm using ADT 20.
I've tried reinstalling Eclipse and the Android SDK, and re-downloading ADT.
The Eclipse error view doesn't show anything
Any ideas of different methods I can try, or other ways to investigate what's going wrong?
Cheers
Update: For anyone coming along post-2014, you should be using Android Studio, which doesn't have this problem.
Disable Project/Build Automatically when you are exporting
I think is a problem of Eclipse unable to detect the Android command is still working or something similar.
Of course there is ever the option of APK generation using Ant outside Eclipse you can generate an Ant build.xml from your Eclipse project more info in official Android docs
Disable Project->Build Automatically. I've noted that this works for me.
Disable project/build Automatically before export the apk.
This seem to be problem with your JVM. Can you update your java and check again. Also check this link
project/ clean worked for me. I think it could be related to the building of the project, as other users have posted.
The problem has gone until I have update ADT and Eclipse. I don't know which one solve the issue.
Now it's working smoothly for severeal signed export, with:
ADT Version: 22.2.1.v201309180102-833290
Eclipse Juno Service Release 2 Build id: 20130225-0426
Gentoo Linux running Java 1.7.0_45-b18.
UPDATE: Few exports after, I still get crashes from time to time, but no very frequently.
may be you should try to add execute authority . you can try something like this
first close auto-build
cd /home/your name/android-dev/sdk/tools/
sudo chmod +x zipalign
done and good luck to you
I used the disable Build Automatically for months now, until I realized that AWS plugins were slowing down the entire launch process. I uninstalled all AWS plugins from Help->InstallationDetails and everything now works perfectly as before. I do not need to disable Build Automatically any more.

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