kinecosystem / kin-sdk-unity Goto Github PK
View Code? Open in Web Editor NEWThis SDK is now deprecated and is replaced by the Kinetic Unity SDK.
Home Page: https://developer.kin.org/docs/developers/unity
License: Other
This SDK is now deprecated and is replaced by the Kinetic Unity SDK.
Home Page: https://developer.kin.org/docs/developers/unity
License: Other
when i try to build your given demo project for android i am getting this error kindly help me to resolve this issue
FAILURE: Build failed with an exception.
Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
Could not find com.github.kinecosystem.kin-sdk-android:kin-sdk-lib:1.0.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/kinecosystem/kin-sdk-android/kin-sdk-lib/1.0.5/kin-sdk-lib-1.0.5.pom
- https://dl.google.com/dl/android/maven2/com/github/kinecosystem/kin-sdk-android/kin-sdk-lib/1.0.5/kin-sdk-lib-1.0.5.jar
- https://jcenter.bintray.com/com/github/kinecosystem/kin-sdk-android/kin-sdk-lib/1.0.5/kin-sdk-lib-1.0.5.pom
- https://jcenter.bintray.com/com/github/kinecosystem/kin-sdk-android/kin-sdk-lib/1.0.5/kin-sdk-lib-1.0.5.jar
- file:/C:/Users/Brothers/Documents/GitHub/kinland/Temp/gradleOut/unityLibrary/libs/kin-sdk-lib-1.0.5.jar
- file:/C:/Users/Brothers/Documents/GitHub/kinland/Temp/gradleOut/unityLibrary/libs/kin-sdk-lib.jar
Required by:
project :launcher > project :unityLibrary
Could not find com.github.kinecosystem.kin-sdk-android:kin-backup-and-restore-lib:1.0.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/kinecosystem/kin-sdk-android/kin-backup-and-restore-lib/1.0.5/kin-backup-and-restore-lib-1.0.5.pom
- https://dl.google.com/dl/android/maven2/com/github/kinecosystem/kin-sdk-android/kin-backup-and-restore-lib/1.0.5/kin-backup-and-restore-lib-1.0.5.jar
- https://jcenter.bintray.com/com/github/kinecosystem/kin-sdk-android/kin-backup-and-restore-lib/1.0.5/kin-backup-and-restore-lib-1.0.5.pom
- https://jcenter.bintray.com/com/github/kinecosystem/kin-sdk-android/kin-backup-and-restore-lib/1.0.5/kin-backup-and-restore-lib-1.0.5.jar
- file:/C:/Users/Brothers/Documents/GitHub/kinland/Temp/gradleOut/unityLibrary/libs/kin-backup-and-restore-lib-1.0.5.jar
- file:/C:/Users/Brothers/Documents/GitHub/kinland/Temp/gradleOut/unityLibrary/libs/kin-backup-and-restore-lib.jar
Required by:
project :launcher > project :unityLibrary
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7s
]
stdout[
Configure project :launcher
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action1[T] progress, System.String error) (at <3746c56c485a40cda2a56050de658f5e>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action
1[T] progress) (at <3746c56c485a40cda2a56050de658f5e>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3746c56c485a40cda2a56050de658f5e>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3746c56c485a40cda2a56050de658f5e>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I can't get pass "connecting to service server"
im running on a physical device and proguard is disabled.
What is causing it not connecting to the server and giving out this code "androidjavaexception java.lang.noclassdeffounderror:failed resoution of:Lkinsdk/kinaccount"
Hi.
There is an error with PostProcessor.cs when The ios Module (unity) is not installed.
Error : Assets\Kin\Editor\PostProcessor.cs(5,19): error CS0234: The type or namespace name 'iOS' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Solution :
To solve the issue add #if UNITY_IOS at the start of the script and #endif on the end so it will only work when IOS module is installed.
Just a note that the ClassNotFoundException: kin.unity.KinPlugin Exception happens when you compile the code with proguard enabled, and then run it on an android device.
There are a few issues where your examples on github here are not correctly capitalized and can cause confusion. "kinClient.getAccount" is one of them, I saw more but might be in the kin android sdk section. Also, in this unity section, you describe an "account.Activate" but I wasn't able to find that method, so was that removed from the sdk? I also couldn't find it being used on the demo example included in the unity asset.
Now, I am pretty new with unity and development in c# in general, so this is not an issue but more like a plea for help. I was able to get the demo working, but of course I wanted to take all the pieces I need from the demo and incorporate it into a class for my project, but I was not able to get it to work right. I could see my public wallet address, etc but I was not able to get the Wallet Balance, nor was I able to send anything, nor was I check the status of the account. I ran the code, and it seems as if I'm not getting the callback reply. I enabled the listeners also, but get nothing back. And if I run the code again, I get an exception that the command is still in flight... I have checked and seem to have everything that was in "KinDemoUI" but I didn't use anything from "KinDemoUIBase" since I assumed that only dealt with the gui interface. What did I miss?
Also, is there a way to check the blockchain to see if we were able send/receive the transactions?
Opening a github issue from Slack as a test
Once we have created some test transactions on the SDK - where can we see them on the blockchain? (Is this the stellar testnet, or a specific Kin testnet?
I tried http://laboratory-testnet.kininfrastructure.com/#explorer?network=test
But that was down (8:04 am 12 March 2019 (UTC))
Which explorer should we use?
So I have downloaded the unity plugin and opened up the demo scene (no change in the code). I have also updated the gradle template according to the instructions.
However, when I try to run the scene, the connecting to service provider message does not change.
This is true even with my firewall turned off, or building and running on a test android device.
Clicking create account does not generate any json, or return any error.
Clicking create account under onboarding shows a bad request error:
I have also posted the issue on stackoverflow, which has more details on custom code I wrote to test the plugin, with similar results.
I have attached the gradle file i'm using in txt format for reference....
mainTemplate.gradle.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.