0

I'm a student who concerned about this issue, I'd like to create a button and when the user taps the 'Start' button, the app opens the Unity program. and I've done lots works for this in the past few weeks,I also found this question: How to make Unity3D as an activity in Android Studio? this is certainly what I want solve too. But Unfortunately, there is just 1 answer replied. and I found this way in: Unity3D and Android Studio Integration (the 2nd answer) I'm so glad could find this way to try, but there are so many wrongs,May I please someone who can solve my bugs or teach me a better way to do? please! I reference this answer and do it step by step, and I bullet all the problems which I met as follow:

1.In the step 1 "import new module",I just can choose a gradle file rather than a project folder, is that right?

2.In the step 5,Sorry for that I don't really understand what this means,[Integrate the new unity module's Manifest with your project’s Manifest by moving necessary tags to our project’s Manifest (e.g. :Activity, uses-feature etc.). But I only have 1 Manifest, I don't know how to integrate:

3.In the step 6,I add "compile project(path: ':yournewmodulename')" to dependencies, after that the problems appear. Errors

4.In the last step, I don't know how to create a layout like that, do I have to create a new file before Step 1 ?

5.In the last step,I've try this script many times,but why this important [UnityPlayerNativeActivity] always become gray? like this

Please any master who can solve them!!! I would be vary very grateful! thanks a lot!!!

June7
  • 19,874
  • 8
  • 24
  • 34
  • 1
    You're trying to start the Unity Editor on your PC via Android Studio, or you're trying to start an already built APK on your phone? – Brandon Miller Jan 04 '18 at 17:56
  • Just as a sidenote: Be more concise when asking a question, the quicker one can understand it, the better your chances of getting an answer. – Marcel Gwerder Jan 04 '18 at 20:10
  • @BrandonMiller I am trying to put the unity project into Andoird Studio, In Android Studio, I'll build a button palette,when user click the button, app will go to the unity project which I import. thanks for your comment!!! – Leslie Zhang Jan 07 '18 at 14:30
  • @MarcelGwerder sorry, my English is not well, I'll try improve my description. thank you for the advise!!! – Leslie Zhang Jan 07 '18 at 14:32

0 Answers0