Recently with a variety of awesome project management software, such as Sourcetree, to see the English version of the only to understand, Chinese will not use!
This blog is suitable for those who do not have contact with Android, there are many related tutorials on the internet, but most of them do not have specific operation or operation is not complete. Android's lack of knowledge of small partners is easy to lose direction.
First, starting with a new Android project, I'm using Eclipse.
File------>new file------>android application Project.
Pop up the above page, notice the red Dash, the smallest SDK selected more than 4.0, why?
Because if you choose 4.0 or less, Android uses the Android-support-v7-appcompat Compatibility Pack in order to allow 4.0 or less to be compatible with more than 4.0 Android layouts. If there is a V7 Compatibility Pack, the subsequent packaging of the Android jar package and importing unity will be troublesome.
(If there are small partners who know how to handle the V7 Compatibility Pack, hope to share the next technology)
The next step is not a lot of attention, probably just always choose the default, always next on the line.
Next, to this step, you can refer to the Momo of the Rain pine post http://www.xuanyusong.com/archives/667
Rain Pine does not mention what steps the Android packaging jar should pay attention to, so there will be a bunch of questions:
So here's a detailed explanation of how to package the jar and what resources to put
Only SRC and res are checked
Then select a folder to save it.
The following is the introduction of the Android project into the Unity3d
The path to U3d is as follows:
Copy all the resources under the res file of the Android project to the Unity3d res folder
Copy the Android profile Androidmanifest.xml to Unity3d's Android folder
Copy the newly packaged jar file to the bin folder of Unity3d
If your Android project uses other jar packages, simply copy these jar packages to Unity3d's Libs folder
Note: You cannot import a class package repeatedly
And the last unity file is probably like this.
And then we can start testing.
A reference address is posted below
Http://www.cnblogs.com/wuzhang/p/wuzhang20160701.html
http://blog.csdn.net/qinyuanpei/article/details/39348677
http://blog.csdn.net/yang8456211/article/details/51331358
Android Project Import Unity3d (avoid pit version)