- Home /
Continue developing in Android Studio
Hello,
I need to integrate a few native plugins into my Android game so I exported it as a Google Android project. In Android Studio I imported this project (btw: Is it possible to make this project a Gradle one?) and wanted to continue development by integrating the plugins. But how do I continue? Where is the code? How can I modify the scripts I created in Unity? I searched everywhere but just have absolutely no idea what to do in Android Studio...
I hope you can help me
best regards, bonana
Answer by DoTA_KAMIKADzE · Nov 18, 2015 at 10:29 PM
No, you go the other way around.
Workflow goes like that - you make plugins and then unite them in Unity project.
Thanks for your answer, but integrating the plugins in Unity is exactly what I want to avoid. If I do so I can't export or build my project anymore because with all plugins integrated it exceeds the maximum method references a dex file can handle. So my idea was to export the project without any plugins integrated and do the rest in Android Studio where I can use Proguard to optimize and shrink my code and libraries (hopefully leading to less method references). So it is not possible to work with the Android projects Unity exports? What is the purpose then?
The Unity Part is hidden in the project. What you can do is customize the start up of the app or for example integrate the UnityActivity into another app. But not modifying it.
How many plug-ins do you have that you exceed the maximum? Or is it low?
I use a fair number of plugins but nothing too crazy in my opinion. The maximum number of method references a single dex can handle is something about 65k. The problem is that one of my plugins is more of a plugin bundle with a lot of different functionalities, so it might get problematic when I try to find and remove the unused stuff. That's where Proguard would help a great deal. But apparently this is impossible... :( Or do you guys know a plugin or even a function in Unity checking all dependencies and removing everything that is unnecessary?
Your answer
Follow this Question
Related Questions
NativePlugin c++ Android sample and self build pcl not loading,Native Plugins c++ "dll not found" 2 Answers
Android Unity, Screen Recording and MediaProjection APIs - UnityPlayerActivity hang. 0 Answers
Normal map is not working with Unity 5 when Low-level Native Plugin Interface is used 0 Answers
Android Export issues, in Unit prefenrences is no sdk path 0 Answers
new GameObject is not work in Android? 0 Answers