Creating an Android plugin for Unity3D

Creating an Android plugin for Unity3D

CWGTech

6 лет назад

38,535 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yacinekahlerras1973
@yacinekahlerras1973 - 12.08.2018 21:59

you made it look too complicated you should've made an easier and shorter example

Ответить
@danielsantos-nx5eh
@danielsantos-nx5eh - 09.09.2018 17:06

Hi CWGtech, when I make the final c# script I get the following error: Assets/Scripts/PluginTest.cs(9,10): error CS0145: A const field requires a value to be provided

I tried everything and don't understand the mistake. I know it might be something simple. can you help ? thanks

Ответить
@jibinjohn8263
@jibinjohn8263 - 28.10.2018 11:50

how to launch unity project from an android activity using button click

Ответить
@TheSimwhi
@TheSimwhi - 08.11.2018 05:27

A useful tutorial on the fundamentals of plugin development. Nice!

Ответить
@25copperllc49
@25copperllc49 - 30.11.2018 09:31

I greatly appreciate this. Just getting the projects setup was driving me crazy. Following tutorial worked on Unity 2018.2.17 and Android Studio 3.2.1. If you get a build error about "Multiple dex files define..." in Unity, make sure you don't have both a -debug and a -release AAR in the Plugins/Android folder as that will cause a problem.

Ответить
@Gluxable
@Gluxable - 31.12.2018 11:42

It keeps giving me error while merging dex files... any solution for this?

Ответить
@Pseudoinsane
@Pseudoinsane - 06.02.2019 03:03

Thank you! This is super helpful

Ответить
@JJDSG
@JJDSG - 01.05.2019 21:07

hello there I have and existing android project for paytm gateway integration for unity . and I would like to create a plugin for unity out of it , if possible can you look at the project and help me create a plugin which I can use to integrate the paytm gateway in unity. I can send you the files and links to the paytm docs for some help . can you help me on this

Ответить
@FADIK1987
@FADIK1987 - 07.05.2019 11:42

nice video keep it up ))))

Ответить
@shyLexy
@shyLexy - 15.05.2019 14:25

I would feel really thanksful if you answer my question.
After saving Build Android, what do I have to do to run app in Android Studio emulator?
just launch a AVD in the emulator in Android Studio and click Build And Run button in Unity, that's all?
I did it till the last step but error is came up.
error like:


CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor.
stderr[
adb: failed to install C:\Users\user\MPAR\pluginTest\pluginTest.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
]
stdout[

]
exit code: 1

Ответить
@mehmetsamast5713
@mehmetsamast5713 - 13.06.2019 22:40

Hello, thanks for good tutorial. I want to ask question. When I build android phone, and touch the browse button I see just white screen and doesn't work close button too. can you help me?

Ответить
@leknubb
@leknubb - 16.08.2019 14:42

Great tutorial, thank you!

Ответить
@ismailyou
@ismailyou - 10.09.2019 23:18

Good job dude.

Ответить
@Nrjwolf
@Nrjwolf - 11.09.2019 11:32

Really great video, no water, just what I need. Thank you!

Ответить
@harshdeepsingh2696
@harshdeepsingh2696 - 03.10.2019 19:22

Great video

Ответить
@JakobVienna
@JakobVienna - 24.10.2019 10:26

Thank you very much for this video!
It helps me a lot and saved me hours in my current project.

Ответить
@albertyue
@albertyue - 30.10.2019 08:34

Amazing! Very concise and to the point. Thanks CWGTech!

Ответить
@BrucePowellbbpz
@BrucePowellbbpz - 17.12.2019 19:14

how would i use an external imported aar to make a plugin

Ответить
@pranjalshah7985
@pranjalshah7985 - 19.01.2020 18:40

Great video lesson..
I just wanted to ask that can I use the unity transform functionality and rendering in an existing android project.

Ответить
@Sebastian-ql1sx
@Sebastian-ql1sx - 09.06.2020 12:45

Thank you very much!!!!! Great Tutorial!

Ответить
@LucasonGuitarz
@LucasonGuitarz - 02.07.2020 20:45

Hi, is it normal that I don't have "singleton" as a kind for the java class?

Ответить
@RabeeQiblawi
@RabeeQiblawi - 25.07.2020 08:51

Thank you very much, I really Appreciate that

Ответить
@nicmana3883
@nicmana3883 - 28.07.2020 09:10

This is a beautiful tutorial.

Ответить
@Niksik6979
@Niksik6979 - 15.08.2020 15:02

How to create a payment gateway plugin in android and use it in Unity project

Ответить
@sharifulislam-pd3sj
@sharifulislam-pd3sj - 09.09.2020 13:31

Some case you are very fast that makes your video garbage. Unlike

Ответить
@thegrey448
@thegrey448 - 17.10.2020 22:29

thank you this tutorial awesome . once again thanks. only one question i have, the cube does not appear on my android background (using the emulator and my mobile phone) it becomes apk and i have to open it, how to make it becomes background?. Thank you in advance.

Ответить
@KasperSOlesen
@KasperSOlesen - 02.11.2020 01:02

Awesome, this really helped me make an Android plugin for Unity for my Oculus Quest app. Had found some that explained it all in a tutorial with no video but it just lacked parts especially with it all being a bit different now.

The singleton class type is not in Android Studio anymore, but its the same as a regular Java class with the static stuff added to it.

Ответить
@Softwarekitchen
@Softwarekitchen - 08.05.2021 02:02

Thank you so much, great explanation

Ответить
@nedimkarabulut5970
@nedimkarabulut5970 - 15.05.2021 17:22

Master, Thanks to great tutorial.

Ответить
@adityamattoo5922
@adityamattoo5922 - 29.05.2021 11:19

Thank you , perfect tutorial. One update : There is not singleton class in Android studio anymore , just type out the code as generated in the video and create you own singleton class , and then follow as instructed , will work .

Ответить
@TonyLovell
@TonyLovell - 10.06.2021 18:45

Love that you showed me how to make Android Studio copy the AAR file over into the Unity build tree. I'm new to gradle stuff, and would rather focus on other challenges. You helped my work flow there!

Ответить
@rickloyd8208
@rickloyd8208 - 22.07.2021 17:33

Thank you! Short and clear instruction. You deserve dozen on likes.

Ответить
@gameeverything687
@gameeverything687 - 09.08.2021 19:37

Damn, you're good, lol.

Ответить
@csaratakij6339
@csaratakij6339 - 18.10.2021 08:03

This save as ass, thank you very much.

Ответить
@ДмитрийРемизов-ш8э
@ДмитрийРемизов-ш8э - 29.01.2022 10:56

A

Ответить
@vigneshwaranparamanandam5404
@vigneshwaranparamanandam5404 - 02.02.2022 14:17

You saved my day! Even the video is old. The explanation is lit!

Ответить
@B.BiStudios
@B.BiStudios - 18.03.2022 20:15

Thans a lot!

Ответить
@emad-dev
@emad-dev - 12.04.2022 01:13

By using this method can i create a plugen that use bluetooth to read and write in unity ?

Ответить
@justosalcedo
@justosalcedo - 14.05.2022 11:01

Perfect! . Funciona perfectamente en Unity 2020 y Android Studio 2021.1.1.
Gracias por la ayuda CWG. Quick and efective.

Ответить
@ShinichiKudoQatnip
@ShinichiKudoQatnip - 10.06.2022 11:01

This was helpful, I hope this will help me with unloading the unity instance properly and returning to the android app without closing the whole app down.

Ответить
@diyshow888
@diyshow888 - 17.06.2022 23:56

Thanks for the tutorial, very well explained, keep it up 💗

Ответить
@Seremothgr
@Seremothgr - 16.01.2023 17:58

Excellent tutorial!

Ответить
@NicolasSouthern
@NicolasSouthern - 26.01.2023 19:51

Amazing! Using this to implement some custom hardware into Unity. First time every playing with android so this is helping me along greatly.

Ответить
@stonegolemstudios
@stonegolemstudios - 23.10.2023 00:05

*Edit - To anyone having issues with the "task" in the gradle - Android Studio Giraffe (latest build as of this comment) uses Kotlin automatically. Here is the code for it

import org.gradle.api.tasks.Copy

tasks.register<Copy>("copyPlugin") {
dependsOn("assemble")
from("build/outputs/aar")
into("../../Assets/Plugins/Android")
include("${project.name}-release.aar")
}

Ответить
@stonegolemstudios
@stonegolemstudios - 23.10.2023 02:56

Unity just WILL NOT keep the .aar file in on builds. Anyone know a workaround for this? I'm getting "AndroidJavaClass not found"

Ответить
@hotbabybox
@hotbabybox - 29.09.2024 20:25

crap video in 2024

Ответить