#Not Building: Switched to API Level 34 and updated to latest Unity IAP
1 messages ยท Page 1 of 1 (latest)
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
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.
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)
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.
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?
Yea, possible.
would you recommend me switching to API 35? I just picked 34 since it is the new minimum requied for Google
Pls pass on the logcat log to look into
34 would be fine now. API 35 is too new.
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
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.
Ok, can you pass me a screenshot of Assets/Plugins/Android folder?
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
it looks like for gradle this is all i had done previously
maybe to get 33 to work?
im not sure
ok, enable Custom "Main Gradle Template" and do a force resolve
Once you resolve, open mainGradleTemplate file to see all required dependencies.
is that through the asset menu? the force resolve?
Top menu bar -> External Dependency Manager -> Android -> Force Resolve
100%
Run run ๐
like build?
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
99% of our support requests are from gradle issues ๐
okay so it looks like that worked! thank you so much! ๐