Is it possible that seperate building the game (Android side and Unity side)

When i change some java code, i need to rebuild hold game it take too much time around 2 hours.

So, It’s possible that seperate build unity side for once and when i change java code just build android side only.

Thank you all.

Off the top of my head, you have 2 options of separating these 2 processes (Unity, building its code + assets into a final executable package), and the “Android” side:

  • Have all your Java code added to Unity as a .JAR or .AAR library. Export your Unity project as a “Google Android Project”. This will not create an APK, only an intermediate project that can be opened using your IDE and then be built into an APK. You can then modify whatever JARs you’re using and build that into an APK.
  • (hacky) Extract your APK and inject JAR libraries into it after it’s already built, then repack and resign to make it work.

I was more thinking of “export as google android project” then add the JAR files and build.

If you add the JAR files after the build, how can you use them from the game ?

Oops… :smile: I mean’t adding the JAR files after exporting from unity but before building! :slight_smile:

Yes, i got it very helpful.

Thanks your very much.