google / play-instant-unity-plugin

Google Play Instant Plugin for Unity Beta (Archived)
https://developer.android.com/topic/google-play-instant/getting-started/game-unity-plugin
Apache License 2.0
148 stars 31 forks source link

Unity 2018.3 - link.xml doesn't work when build for console #134

Closed appxplore-tech closed 4 years ago

appxplore-tech commented 5 years ago

Hi

Recently I had set the Strip Engine Code to true and also Managed Stripping Level to Medium in Unity3d 2018.3. I manage to build an APK that is playable from my phone but when i try to build an ZIP file from the Build for console and test from my phone through the "TRY NOW" button, It doesn't work as it tells me the class has been stripped down.

Is there any way for me to strip the engine code with the link.xml?

THank you.

jamcohen commented 5 years ago

Hello, thanks for reaching out.

I have a couple questions to help me understand the issue:

  1. When you build the APK, are you building/running it using the menu option: PlayInstant -> Build & Run?
  2. When you build the APK, do you have a link.xml file in your Assets folder?
  3. Which class fails to load?
  4. Is that class referenced in your scene, or is it attached to a prefab in an AssetBundle?
  5. If you are using AssetBundles, what is the "AssetBundle Manifest" field in the "Play Instant Build Settings" set to?

Any logs that you can send would also be very helpful.

Thanks!

Also, these links may come in handy: https://docs.unity3d.com/Manual/IL2CPP-BytecodeStripping.html https://answers.unity.com/questions/1432923/asset-bundle-code-stripping-linkxml-not-working.html