What are the Android plugin changes in unity 5.2 (5.2 and below builds worked just fine)

Hello, I was wondering if anyone had information on what changed in Unity 5.2 to the plugins directory. The plugins I have that work in 5.1 and previous platforms no longer work in 5.2 .

I am overriding the manifest file, and unity activity as well as adding some additional class files. I dont see information on what has changed from 5.1 in the API docs.

Just additional information, i am now getting the error:
Unable to start activity ComponentInfo{com.my.app/com.my.app.WebViewActivity}: in 5.2, but worked just fine in 5.1.

Thank you,
Dylan

Can you show your plugins/android folder contents ? (e.g: what jars and other folders do you have there?)

In 5.2 it seems that you cannot directly use resources under assets/plugins/android/res directly.

That is the only difference i know, nut that should also trigger a warning when building.

Hi liortal, Here is my directory structure. The default, project dirs are empty.

2307386--155427--androidplugin.png

2307386--155428--androidplugin2.png

You cant use the res folder…

Grab the helper editor script i created that will convert that into an android library. Not sure that is your issue nut you can try that: https://dl.dropboxusercontent.com/u/31384095/Unity/UpdateResAndroid.unitypackage

Once imported, right click in your project view, there should be a new option to convert res to an android library.

Don’t forget to update this thread ehether that helped :slight_smile:

ok thanks, ill test it out and see if it works.

I tried your package, but I think because we have our own manifest files and updated application views it doesn’t work and throws compile errors. I do think that you set me down the right path though, and im going to make sure the resources folder gets compiled in with the Jar we have created. Ill update this once i get it working correctly.

You cannot include resources in JARs, only in .aar libraries…

Do you know if i could just throw the resources in a .aar library and unity would use it? What exactly was your package trying to do? just move the res directory under a second directory?

My package will only move folders around…

Unity supports .aar libs so you can package them inside it…