Getting an error when trying to build the CubicPilot sample from the Unity Google Play plugin - unity3d

i just watched this video about the Google Play Games plugin for Unity, and readed about how to set it up here.
But i get this error when i try to build the CubicPilot sample:
Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/Danny/Desktop/adt-bundle-windows-x86_64-20131030/sdk/platforms/android-19\android.jar" -d
I've followed all the steps to set it up but i was not really sure about the step called:
"Additional instructions on building for Android on Windows" (Im using windows 7)
My computer had no JAVA_HOME enviroment variable, so i tried to create one and set the path to: C:\Program Files (x86)\Java\jre7 (I had no idea what i was doing, but it didn't work)
The instructions said that i had to set it to:
C:\Program Files\Java\jdk1.7.0_45.
However, there were no jdk1.7.0_45, so i just set it to the jre7 which was the only folder.
And i also didn't understand the "Add the Java SDK's bin folder to your PATH environment variable".
I hope someone can help me with the issue.
Thanks in advance.

How to change the path environment variable: http://www.computerhope.com/issues/ch000549.htm

I never experienced this error on unity before, but i got some issues like that programming for google app engine and android apps.
So, try download the jdk and use it instead of the jre. it has more features for developers, many of my problems (in another environments) were solved when I passed to use the jdk.

Related

I Have to add JAVA_HOME to gradle.properties every time I start a new flutter project in vs code! how to solve it once & for all?

I am starting to learn flutter & by extension, dart.
However! every time I follow a tutorial & start a new project in vs code I have to go to the file called gradle.properties and add org.gradle.java.home=C:/Program Files/Java/jdk-11.0.9 or else I won't be able to run/debug!
Because I get an error saying I need java 11 while I'm using 1.8 which is TOTALLY not true because my java_home (& path) variable is set to java 11, which is the directory i add through the previously mentioned line of code.
Please, I do not know what to do, and googling is no longer helping as no result I'm finding is working. I need someone to tell me what to do to solve this... issue because I am sure something can be done once instead of repeating this process every time.
Note: I found on google people saying stuff like:
Set Gradle jdk path to java 11 in android studio
but I do not have that option.
Also, please note that I am still a beginner-level developer with little practical experience - Sorry if my question is, well, stupid.
attached images:
Gradle Error if gradle.properties not modified
gradle.properties file
my Android Studio settings
Android Studio settings found on the internet
~Have a nice day.
I had same problem after updating Flutter. Try to check your JAVA version java -version (update it, if it less than 8).
Then update Android SDK: https://stackoverflow.com/a/61434900/13506243
This helped me.

Mallet download issues

I am really new to this type of computer work and am having trouble creating the path. I looked up a tutorial on how to do this online and followed everything to a tee, but when I try to change the directory path it is not working. Here's what I did -
download Java Development Kit
Download Mallet 2.0.7
Move Mallet 2.0.7 download to my c-drive
added a new environmental variable - C:\mallet-2.0.7
Using the cmd I've got C:>cd mallet-2.0.7
Then I get the error message "The system cannot find the path specified"
Anyone have tips on what I'm doing wrong?
This is really a windows issue, not a Mallet issue, but please note that Mallet 2.0.7 is out of date. 2.0.8 has many bug fixes and performance improvements.

Adding Native support to gstreamer tutorial won't finish

I'm following this:
http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development
I'm using the Windows x86 ADT bundle, the Windows x86 r9d NDK, and the Gstreamer SDK linked to in the guide.
I was able to get the first tutorial to add native support, build, and run. Then I tried the 3rd tutorial, and Eclipse becomes unresponsive. Same thing happened with the 2nd tutorial. I left it to do it over the weekend in case it just took a long time. When I change anything for another attempt I delete the tutorial folder completely and use a fresh copy from the zip file. I have also remove the ADT bundle completely and started over from scratch.
If I cancel, I have the expected build errors of missing import com.gstreamer.GStreamer;
The GSTREAMER_SDK_ROOT_ANDROID value is set to C:/gstreamer
The NDK Location is C:\android-ndk-r8d
I switched to using r8d as recommended in: Adding Gstreamer support to an android NDK project
One comment also suggests adding to the gstreamer.mk file:
ifndef SYSROOT
SYSROOT := $(NDK_PLATFORMS_ROOT)/$(TARGET_PLATFORM)/arch-$(TARGET_ARCH)
endif
I attempted this but there is a gstreamer_prebuilt.mk file it may be using instead.
My only clue is that Tutorial 1 does not use gstreamer plugins and the tutorials that do not work use plugins.
Thank you for any help you can give.
Edit: I tried using android-ndk-r7c also.
Then I deleted the ADT bundle and tried going the "Use an existing IDE" route, same result.
I'm going to try a different machine, and also see if I can compile it without eclipse, but I would love to hear any guess on what's going on.
Edit2: I watched a youtube video of someone setting this up (as far as I can tell he adds the NDK manually adding a build program and pointing to the ndk-build.cmd file):
https://www.youtube.com/watch?v=nKfAELFdf9A
This seemed to work but I was still missing import com.gstreamer.GStreamer; so I closed the tutorial 2 project, built and ran tutorial 1, opened tutorial 2 again, cleaned, built, and it ran.
Problem solved.
I watched a youtube video of someone setting this up (as far as I can tell he adds the NDK manually adding a build program and pointing to the ndk-build.cmd file):
https://www.youtube.com/watch?v=nKfAELFdf9A
This seemed to work but I was still missing import com.gstreamer.GStreamer; so I closed the tutorial 2 project, built and ran tutorial 1, opened tutorial 2 again, cleaned, built, and it ran.
Problem solved.

Facebook SDK for Unity slow settings screen

I'm using the Facebook SDK for Unity v5.04 (also tried 5.03) and whenever I open the FacebookSettings panel in the inspector I get ridiculous slowdown to the point that I can't even use Unity. This only happens when I do that, does anyone know what might be wrong? I've tried it on multiple computers now and all have been experiencing this lag.
I am getting this same thing. I don't think this is happening to every project or the FB team would have noticed prior to pushing the builds out.
As far as I can tell, it only happens on larger projects. We have seen this same behavior in other plugins (namely one that one of our developers wrote) when the plugin tried to scan the project for a file of a specific name. It didn't show up in his tests but in large projects it made Unity almost unusable.
I tested the Facebook settings issue on a brand new project and it's fast.
Potential Solution Delete everything in your project except Facebook ;)
Edit: The settings menu appears to work just fine on a Mac. I have the same project on my PC and Mac (and the PC's specs are far better than the Mac's) yet it brings Unity to a crawl on the PC and it works fine on the Mac. Go figure :S
OP: If you add the SDK to a new project, or Facebook's sample project, do you see the same issue? Also, could you update with the Unity version you're using, so we can explore? Thanks!
I have the same problem
but when I follow this Link that solve "[Open SSL not found]" Problem >> The slow problem was disappeared.
this is the steps that I was follow:
1) Download and install OpenSSL. http://slproweb.com/products/Win32OpenSSL.html
Win32 OpenSSL v#.#.# (not Light)
OR Win64 OpenSSL v#.#.# (not Light)
2) Add the OpenSSL directory to your path.
Go to: Control Panel > System > Advanced system settings > Environment Variables
Select the Variable "Path" in the "System variables" window and click Edit.
3) Add the path to your OpenSSL bin folder to the end of the "Variable value" text. e.g. I added ";C:\Program Files\OpenSSL-Win64\bin" to the end of the value text.
Restart Unity3D.
take note do not forget to add semi-colon ";" before the C:/
4) If you get the error in FacebookSettings "Keytool not found", you need to add the JDK (Java Development Kit) bin directory to the Path variable value.
5) Follow the same steps as before, but instead of the OpenSSL bin path, add the JDK bin path. e.g. I added ";C:\Program Files\Java\jdk1.7.0_45\bin" to the end of the value text.
Restart Unity3D.

DllNotFoundException: libgfxunity3d

I'm new to unity and I am trying to use a plugin named Scaleform and I'm following the steps indicated in readme file, I've created a new project, imported the plugin, selected Main Camera object and attached the specified script to it, but when I want to play, I get this error:
DllNotFoundException: libgfxunity3d
SFCamera.OnDestroy () (at Assets/Plugins/SF/SFCamera.cs:163)
I googled and all I got was this: http://forums.autodesk.com/t5/Scaleform-Unity-Development/dll-not-found-exception/td-p/4242779
I've downloaded and installed DirectX too, but still no change! :(
Does anyone know what should I do?
Thanks!
We also ran into this problem on Windows. Ultimately, reinstalling the DirectX runtime did fix it for us (the person who had the problem was missing the d3dx9_43.dll that the Scaleform dll depends on).
You might also check and make sure you have put the right key into the appropriate location in your inherited camera script. (In the example, I believe it is called MyCamera.cs.)
Finally, you should check that your build target matches the version of the Scaleform trial you have installed. If your Unity build setting is Android, for example, you need to have the Android runtime for Windows, not the Windows runtime proper.
I downloaded the Depends application from http://www.dependencywalker.com/ and loaded libgfxunity3d.dll. I was missing msvcr100.dll, IEShims.dll and wer.dll. I threw those dlls into the System32 directory and my program ran great. Hope this helps!