#Not Building: Switched to API Level 34 and updated to latest Unity IAP

1 messages ยท Page 1 of 1 (latest)

brave sinew
#

Running Unity 2020.3.48f1 - project was previously building fine with API level 33 and Unity 2020.3.45. I think I had to modify my build tools to make API level 33 work but I don't totally recall it was about a year ago.

I am running Voxel Busters Essential Kit 2.6.1

brave sinew
#

so this is strange. If i delete resolved libraries for android it builds successfully once. but then if i do another build it fails with the same errors. it works if i delete resolved libraries first

cinder scaffold
#

Can we have a quick remote session to look into?

#

I see you have duplicate libraries as per the error. So would like to see whats causing to make them reappear again.

brave sinew
#

sorry for the delay I stepped away. I also noitced the build I am able to get it to build ends up just showing a black screen and is about 10-15 mbs smaller than it should be (once I delete the android libraries to build)

cinder scaffold
#

Please try running any of our demo scenes and check once.
If the setup is not right, it should crash on start. Black screen sounds to be an unity specific issue related to your unity version + API 34 combo which is a known one on unity forum.

brave sinew
#

well so it seems to build correctly if I delete the android libraries but then if i do a second build it fails with those errors. Could the black screen be related to be deleting the android libraries and then maybe something isnt getting automatically added back during the build process?

cinder scaffold
#

Yea, possible.

brave sinew
#

would you recommend me switching to API 35? I just picked 34 since it is the new minimum requied for Google

cinder scaffold
#

Pls pass on the logcat log to look into

#

34 would be fine now. API 35 is too new.

brave sinew
#

is it possible I have to update any files manually in my build tools? I know for unity 3.45 and api 33 I had to go in and replace some files (this was almost a year ago i dont remember what i had to do specifically)

#

so the only things I did differently from the last working build pipeline was:

1.) Updated Unity from 3.45 to 3.48
2.) Updated Unity IAP to the latest 4.12.2 (Google was complaining about my Google Billing version)
3.) Updated API from 33 to 34

#

the update from IAP broke in 3.45 which is why I switched. There was a known bug with 3.45 where I was getting a bunch of console errors and the 'fix' was to upgrade Unity for that.. lol

#

actually is google billing updated via Unity IAP package or did I mix that up

cinder scaffold
#

May I know what features are you using from our plugin? If you use Billing from our plugin, you don't need any external plugins like unity iap.

brave sinew
#

sure!

#

im using cloud save, leaderboard and achievements, sharing and native ui

cinder scaffold
#

Ok, can you pass me a screenshot of Assets/Plugins/Android folder?

brave sinew
#

i think this used to have a lot more stuff in it

cinder scaffold
#

Thats fine. With latest EDMU, this is how it will be. All deps are moved to maingradle template.
Do you have maingradle template enabled in player settings?

#

If not, pls enable it and do Force Resolve from EDMU

brave sinew
#

it looks like for gradle this is all i had done previously

#

maybe to get 33 to work?

#

im not sure

cinder scaffold
#

ok, enable Custom "Main Gradle Template" and do a force resolve

#

Once you resolve, open mainGradleTemplate file to see all required dependencies.

brave sinew
#

is that through the asset menu? the force resolve?

cinder scaffold
brave sinew
#

okay cool

#

sec!

#

did i win

#

LMAO

cinder scaffold
brave sinew
#

i see a bunch of stuff in this template file

#

how do i know if its good lol

cinder scaffold
brave sinew
#

like build?

cinder scaffold
#

Yea ๐Ÿ™‚

#

Make a build and run on device!

brave sinew
#

man idk how you stay on top of this android/google stuff! lol it's been a while since I have touched this project but man it gives me such PTSD anytime it doesnt build LOL ive been sticking to windows development for my day job i do not miss android stuff lol

cinder scaffold
#

99% of our support requests are from gradle issues ๐Ÿ˜

brave sinew
#

okay so it looks like that worked! thank you so much! ๐Ÿ™‚