I am running windows 7 64 bit and I can't run my sdk manager. I've tried command prompt. I've done alot of RandD and can't seem to get it too work. I mean i don't get it. If Microsoft wants us to spend more money on their 64 bit operating systems why would they make it less functional than their 32 bit operating system? Anyways, here is there error I get every time try to run my sdk manager:
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] 'xcopy' is not recognized as an internal or external command,
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] operable program or batch file.
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] Access is denied.
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or swt-win32 in swt.library.path, java.library.path or the jar file
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:334)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.doAction(Main.java:308)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.run(Main.java:119)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.main(Main.java:102)
Problem solved. Just had to right click sdk manager and run it as an administrator.
Related
I am trying to integrate Banuba Video Editor sdk in flutter.
The issue i am facing is as below
Banuba sdk works with native code for Android in Flutter
So Banuba requires FFMPEG dependency to define in Native Android
And I am already using 'ffmpeg_kit_flutter' plugin for flutter.
So both the FFMPEG kits are conflicted and some of the functions are not found. due to that I am receiving the below error.
When the app is launched I am receiving this Crash as mentioned
**java.lang.Error: FFmpegKit failed to start on brand: google, model: sdk_gphone_x86, device: generic_x86_arm, api level: 30, abis: x86 armeabi-v7a armeabi, 32bit abis: x86 armeabi-v7a armeabi, 64bit abis: .
** at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:50)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:189)
at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
at com.arthenica.ffmpegkit.FFmpegKitConfig.enableFFmpegSessionCompleteCallback(FFmpegKitConfig.java:864)
at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.registerGlobalCallbacks(FFmpegKitFlutterPlugin.java:168)
at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.init(FFmpegKitFlutterPlugin.java:652)
at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.onAttachedToActivity(FFmpegKitFlutterPlugin.java:198)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivityInternal(FlutterEngineConnectionRegistry.java:351)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivity(FlutterEngineConnectionRegistry.java:324)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:194)
at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:498)
at com.sound.it.MainActivity.onCreate(MainActivity.kt:43)
at android.app.Activity.performCreate(Activity.java:8000)
at android.app.Activity.performCreate(Activity.java:7984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
**Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "av_log_default_callback" referenced by "/data/app/~~umF3qlB9U53L4peU9nKYuQ==/com.sound.it-agqiFlNmMe17AHMK5gYIHw==/lib/x86/libffmpegkit.so"...**
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:48)
Looking for the solutions
Installed Pentaho Data Integration 9.3 on Mac OS Monterey on a MacBook Pro M1 (Apple Silicon.)
I am running OpenJDK 11:
Openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10)
OpenJDK 64-Bit Server VM (build 11.0.15+10, mixed mode)
The install.sh process runs without error. However, after install, trying to execute the spoon.sh process, the following errors occur...
WARNING: Using java from path
DEBUG: _PENTAHO_JAVA_HOME=
DEBUG: _PENTAHO_JAVA=java
DEBUG: PENTAHO_INSTALLED_LICENSE_PATH=
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-cocoa-3738 in java.library.path: [./../libswt/osx64/]
no swt-cocoa in java.library.path: [./../libswt/osx64/]
Can't load library: /Users/jgregory/.swt/lib/macosx/aarch64/libswt-cocoa-3738.jnilib
Can't load library: /Users/jgregory/.swt/lib/macosx/aarch64/libswt-cocoa.jnilib
Can't load library: /Users/jgregory/.swt/lib/macosx/aarch64/libswt-cocoa-3738.jnilib
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at org.pentaho.di.ui.core.widget.OsHelper.setAppName(OsHelper.java:106)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:652)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Has anyone run into this issue and are there any known workarounds?
Download latest swt for arm64 support from here
https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/S-4.25M1-202207061800/swt-4.25M1-cocoa-macosx-aarch64.zip&mirror_id=518
unzip it, get swt.jar and Put it under /path_to_your_data-integration/libswt/osx64/ and delete the one thats there.
Than using rosseta shell, guide how to set up rosseta can be found here:
https://stackoverflow.com/a/68571463/19586128
start the spoon.sh with required configurations
If you use java 8 It will complain first with:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/swt/widgets/Control has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I update my JAVA_HOME to 18 (17 works too) and it worked
This worked for me, but please feel free to ask if it does not work and i can help more with this
Download this jar from here and replace the one from /path_to_your_data-integration/libswt/osx64/.
Don't forget to run it using Rosetta and from the terminal
/Applications/data-integration/Data Integration.app/Contents/MacOS
Run
./JavaApplicationStub
I'm trying to get started with Unity Command Line arguments and trying to simply make an editor function that writes to a file. If I run the function from within Unity, it works and I can successfully see the contents of the file, but when I'm trying to call it from the command prompt, it doesn't give any error messages in the console (and even if I change the name of the function to something that doesn't exist, it doesn't giev any errors either.. so also it would be cool to get an error stdout if possible). Here's my basic unity class (that works when called from within unity):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.Networking;
using System.IO;
public class CobysBundleBuilder {
public static void CobyBuildIt() {
var path = "Assets/test.txt";
StreamWriter writer = new StreamWriter(path, true);
writer.WriteLine("Hi there!");
writer.Close();
Debug.Log("ASDFGG");
MonoBehaviour.print("wow");
}
}
And this is the command I'm calling from the command line, I don't even see a logFile created:
C:\"Program Files"\Unity\Hub\Editor\2019.1.0b1\Editor\Unity.exe -batchmode -quit -projectPath C:\Users\me\OneDrive\Documents\"totally empty"\"New Unity Project" -executeMethod CobysBundleBuilder.CobyBuildIt -logFile C:\Users\me\OneDrive\Desktop
So first of all the desired file, which is placed in my assets folder (test.txt), isn't being written to (like it is when called from within Unity), and also the logfile isn't appearing on my desktop.
Am I missing something basic? I'm just trying to test the Unity command line arguments and get something basic to work.
Thanks, if anyone knows how to fix it.
P.S.:
Also it might be possible that the projectPath parameter might not be working, since when I call the command without -batchmode and -quit it just opens up the unity hub with a list of all my projects, but doesn't open the specific project passed as the paramter.
EDIT:
I tried putting the script in my Assets/Editor folder and checked the Editor.Log file in AppData and this is what it says (I changed the function BTW):
LICENSE SYSTEM [2019219 0:41:36] Next license update check is after 2018-08-28T23:32:35
LICENSE SYSTEM [2019219 0:41:36] 00342-20100-00000-AAOEM != 00342-20108-34498-AAOEM
Built from '2019.1/staging' branch; Version is '2019.1.0b1 (83b3ba1f99df) revision 8631226'; Using compiler version '191627012'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 11743 MB
BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 54964 was selected
COMMAND LINE ARGUMENTS:
C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Unity
-batchmode
-quit
-projectPath
C:\Users\me\OneDrive\Documents\totally empty
-executeMethod
MyScript.MyMethod
Successfully changed project path to: C:\Users\me\OneDrive\Documents\totally empty
C:/Users/me/OneDrive/Documents/totally empty
Using Asset Import Pipeline V1.
DisplayProgressbar: Unity Package Manager
Loading GUID <-> Path mappings...0.000110 seconds
Loading Asset Database...0.016790 seconds
AssetDatabase consistency checks...0.049615 seconds
[Package Manager] Done resolving packages in 0.74s seconds
[Package Manager] Registering 38 packages:
[Package Manager] * Package : com.unity.ads#2.0.8
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.ads#2.0.8)
[Package Manager] * Package : com.unity.analytics#3.2.2
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.analytics#3.2.2)
[Package Manager] * Package : com.unity.collab-proxy#1.2.15
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.collab-proxy#1.2.15)
[Package Manager] * Package : com.unity.package-manager-ui#2.1.1
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.package-manager-ui)
[Package Manager] * Package : com.unity.purchasing#2.0.1
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.purchasing#2.0.1)
[Package Manager] * Package : com.unity.textmeshpro#1.3.0
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.textmeshpro#1.3.0)
[Package Manager] * Package : com.unity.timeline#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.timeline)
[Package Manager] * Package : com.unity.xr.legacyinputhelpers#1.0.0
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.xr.legacyinputhelpers#1.0.0)
[Package Manager] * Package : com.unity.modules.ai#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ai)
[Package Manager] * Package : com.unity.modules.animation#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.animation)
[Package Manager] * Package : com.unity.modules.assetbundle#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.assetbundle)
[Package Manager] * Package : com.unity.modules.audio#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.audio)
[Package Manager] * Package : com.unity.modules.cloth#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.cloth)
[Package Manager] * Package : com.unity.modules.director#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.director)
[Package Manager] * Package : com.unity.modules.imageconversion#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imageconversion)
[Package Manager] * Package : com.unity.modules.imgui#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imgui)
[Package Manager] * Package : com.unity.modules.jsonserialize#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.jsonserialize)
[Package Manager] * Package : com.unity.modules.particlesystem#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.particlesystem)
[Package Manager] * Package : com.unity.modules.physics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics)
[Package Manager] * Package : com.unity.modules.physics2d#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics2d)
[Package Manager] * Package : com.unity.modules.screencapture#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.screencapture)
[Package Manager] * Package : com.unity.modules.terrain#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrain)
[Package Manager] * Package : com.unity.modules.terrainphysics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrainphysics)
[Package Manager] * Package : com.unity.modules.tilemap#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.tilemap)
[Package Manager] * Package : com.unity.modules.ui#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ui)
[Package Manager] * Package : com.unity.modules.uielements#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.uielements)
[Package Manager] * Package : com.unity.modules.umbra#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.umbra)
[Package Manager] * Package : com.unity.modules.unityanalytics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unityanalytics)
[Package Manager] * Package : com.unity.modules.unitywebrequest#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequest)
[Package Manager] * Package : com.unity.modules.unitywebrequestassetbundle#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestassetbundle)
[Package Manager] * Package : com.unity.modules.unitywebrequestaudio#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestaudio)
[Package Manager] * Package : com.unity.modules.unitywebrequesttexture#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequesttexture)
[Package Manager] * Package : com.unity.modules.unitywebrequestwww#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestwww)
[Package Manager] * Package : com.unity.modules.vehicles#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vehicles)
[Package Manager] * Package : com.unity.modules.video#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.video)
[Package Manager] * Package : com.unity.modules.vr#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vr)
[Package Manager] * Package : com.unity.modules.wind#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.wind)
[Package Manager] * Package : com.unity.modules.xr#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.xr)
[Package Manager] Done registering packages in 0.01s seconds
Refreshing native plugins compatible for Editor in 18.94 ms, found 2 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Initialize engine version: 2019.1.0b1 (83b3ba1f99df)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: AMD Radeon(TM) R7 Graphics (ID=0x9874)
Vendor:
VRAM: 3433 MB
Driver: 22.19.180.513
Launched and connected shader compiler UnityShaderCompiler.exe after 0.14 seconds
[EnlightenBakeManager] m_Clear = false;
WARNING: Shader Unsupported: 'AR/TangoARRender' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'AR/TangoARRender' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Pass 'Flip_RGBARect_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Setting to default shader.
Initialize mono
Mono path[0] = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/Managed'
Mono path[1] = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit'
Mono config path = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/MonoBleedingEdge/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56428
Begin MonoManager ReloadAssembly
Refreshing native plugins compatible for Editor in 0.97 ms, found 3 plugins.
Initializing Extension Manager v2019.1.0 for Unity v2019.1.0b1
Registering precompiled unity dll's ...
Register platform support module: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\PlaybackEngines\windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll
Register platform support module: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\PlaybackEngines\WebGLSupport/UnityEditor.WebGL.Extensions.dll
Registered in 0.005863 seconds.
Registering platform support modules:
Registered platform support modules in: 0.2405032s.
Native extension for WindowsStandalone target not found
Native extension for WebGL target not found
Refreshing native plugins compatible for Editor in 0.59 ms, found 3 plugins.
Preloading 1 native plugins for Editor in 3.16 ms.
Mono: successfully reloaded assembly
- Completed reload, in 3.308 seconds
Registering precompiled user dll's ...
Registered in 0.082678 seconds.
Platform modules already initialized, skipping
Begin MonoManager ReloadAssembly
my new C# code is pretty much the same but here it is anyway:
using UnityEngine;
using UnityEditor;
using System.IO;
public class MyScript {
public static void MyMethod () {
var path = "Assets/test.txt";
StreamWriter writer = new StreamWriter(path, true);
writer.WriteLine("Hi there!");
writer.Close();
Debug.Log ("Here you put your code");
}
}
SO after I run the command the test.txt file still isn't created.
2nd Edit: I just saw the new answer that logfile indeed needs to be a file name, and after doing so the logfile was created! And this is what it says:
LICENSE SYSTEM [2019219 0:45:54] Next license update check is after 2018-08-28T23:32:35
LICENSE SYSTEM [2019219 0:45:54] 00342-20100-00000-AAOEM != 00342-20108-34498-AAOEM
Built from '2019.1/staging' branch; Version is '2019.1.0b1 (83b3ba1f99df) revision 8631226'; Using compiler version '191627012'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 11743 MB
BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 51774 was selected
COMMAND LINE ARGUMENTS:
C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Unity
-batchmode
-quit
-projectPath
C:\Users\me\OneDrive\Documents\totally empty
-executeMethod
MyScript.MyMethod
-logfile
C:\Users\me\OneDrive\Desktop\wow.txt
Successfully changed project path to: C:\Users\me\OneDrive\Documents\totally empty
C:/Users/me/OneDrive/Documents/totally empty
Using Asset Import Pipeline V1.
DisplayProgressbar: Unity Package Manager
Loading GUID <-> Path mappings...0.000149 seconds
Loading Asset Database...0.018028 seconds
AssetDatabase consistency checks...0.041902 seconds
so it seems to be opening the project, but the test.txt file is still not created so it seems the function MyScript.MyMethod isn't being called still
As the document says, argument for -logfile should be a file name, and you seem to use a directory name, this may be the reason.
https://docs.unity3d.com/2019.1/Documentation/Manual/CommandLineArguments.html
I am using a Mac (Mac OS 10.13.6) and I am using Open JDK openjdk version "1.8.0_192"
I can easily run the Orient Database by running server.sh
But when I try to run gremlin.sh I get an error
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib: dlopen(/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib, 1): Library not loaded: #rpath/libfreetype.6.dylib
Referenced from: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
OK. I resolved it after a some googling. The solution on Mac OS (which worked for me is)
brew cask upgrade
This upgraded to a new version of open JDK which doesn't has this problem.
https://github.com/AdoptOpenJDK/homebrew-openjdk/issues/42
I'm trying to add Facebook functionality to my Unity3D project, which is working for me. But for some unknown reason the test scene doesn't seem to work for some Facebook users. It looks like the the Facebook DLL doesn't load.
I'm using the example scene which comes with Unity3D Facebook SDK. No modifications, I only changed the App Name and App Id (Facebook Settings).
The application is set on public.
log when it works:
140505 15:36:05 ------------------------------------------------------------
140505 15:36:05 Instance starting, version 4.3.5f1_cab656801c19, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
140505 15:36:05 Datafile https://oege.ie.hva.nl/~vriens09/facebook.unity3d
web: player version 4.3.6f1
web: load mono
Mono path[0] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/player/Stable3.x.x/Data/lib'
Mono path[1] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/lib'
Mono config path = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/etc'
web: start, src=https://oege.ie.hva.nl/~vriens09/facebook.unity3d abs=https://oege.ie.hva.nl/~vriens09/facebook.unity3d flags=0x1
web: sucessfully initialized
140505 15:36:06 loader: start ok
140505 15:36:06 Times: download 0.2 load 0.1
Loading webdata version: 4.3.4f1
Initialize engine version: 4.3.6f1 (7a73f0242edf)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [nvd3dum.dll 9.18.13.3250]
Renderer: NVIDIA Quadro FX 570M
Vendor: NVIDIA
VRAM: 1255 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll into Unity Child Domain
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll into Unity Child Domain
- Completed reload, in 0.074 seconds
<RI> Initializing input.
<RI> Input initialized.
desktop: 1680x1050 60Hz; virtual: 1680x1050 at 0,0
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.Core.dll (this message is harmless)
Using SDK 5.1.0, Build 140401.725cc2ecbc9002a
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
loading dll: /rsrc/unity/lib/sdk_5.1/CanvasFacebook.dll
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\Mono.Security.dll (this message is harmless)
Non platform assembly: data-0B170078 (this message is harmless)
Finished loading Facebook dll. Version 5.1.0 Build 140313.f19caa5422b69ba
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
FB.Init completed: Is user logged in? True
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.dll (this message is harmless)
log when it fails:
140505 15:33:35 ------------------------------------------------------------
140505 15:33:35 Instance starting, version 4.3.5f1_cab656801c19, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
140505 15:33:36 Datafile https://oege.ie.hva.nl/~vriens09/facebook.unity3d
web: player version 4.3.6f1
web: load mono
Mono path[0] = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/player/Stable3.x.x/Data/lib'
Mono path[1] = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/lib'
Mono config path = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/etc'
web: start, src=https://oege.ie.hva.nl/~vriens09/facebook.unity3dabs=https://oege.ie.hva.nl/~vriens09/facebook.unity3d flags=0x1
web: sucessfully initialized
140505 15:33:36 loader: start ok
140505 15:33:36 Times: download 0.7 load 0.2
Loading webdata version: 4.3.4f1
Initialize engine version: 4.3.6f1 (7a73f0242edf)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [igdumd32.dll 8.15.10.1749]
Renderer: Mobile Intel(R) 965 Express Chipset Family (Microsoft Corporation - WDDM 1.1)
Vendor: Intel
VRAM: 64 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=0 NativeShadow=1 DF16=0 INTZ=0 RAWZ=0 NULL=0 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll into Unity Child Domain
Non platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll (this message is harmless)
Loading C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll into Unity Child Domain
- Completed reload, in 0.119 seconds
<RI> Initializing input.
XInput1_3.dll not found.
<RI> Input initialized.
desktop: 1280x800 60Hz; virtual: 1280x800 at 0,0
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.Core.dll (this message is harmless)
Using SDK 5.1.0, Build 140401.725cc2ecbc9002a
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
loading dll: /rsrc/unity/lib/sdk_5.1/CanvasFacebook.dll
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\Mono.Security.dll (this message is harmless)
Non platform assembly: data-09B0B848 (this message is harmless)
Finished loading Facebook dll. Version 5.1.0 Build 140313.f19caa5422b69ba
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
SDK Version 5.1.0
Unity3D Version 4.3.4f1