Posts

Unity ads install error from package manager

Image
 When you are trying to install or updating your unity ads sdk from package manager after installing it will showing you two of them error let me talk about the first error if you are showing error in console and saying  " Feature `expression bodied members' cannot be used because it is not part of the C# 4.0 language specification"  like this   G:/games/Unity Games/sample/Library/PackageCache/com.unity.ads@3.4.0/Runtime/Advertisement/Advertisement.cs(25,42): error CS1644: Feature `expression bodied members' cannot be used because it is not part of the C# 4.0 language specification This error is showing to use because you are using  Scripting Runtime Version from .NET 3.5 equivalent which is now deprecated so change it to .NET 4.x Equivalent. Steps to change it are as follows 1. Open build setting by navigating file and click on build setting as shown in the picture 2. When build setting dialog box is open click on player setting 3. Now player setting is opened ...

How to fix Android Gradle Build failed error in unity

Image
 If yoiu are seeing gradle build failed when building your game in unity showing following message There is a simple way to resolve this error if you are using older version than unity 2019 Just go to build setting setting and change Build system from gradle to internal. it will resolve your error. But it is ok for just testing your game if you are building for google play store then should build your game with gradle build. To build with gradle you should follow some step  1. go to build setting -> player setting -> publishing setting In publishing setting you should setup your keystore here you can create a new key or use existing key. 2.   Sometimes gradle build failed also occur because of minimum API level so go in build setting -> player setting -> other setiing  in other setting you will find minimum API level try to change this API level to Android 4.4 or 5.0 if you are using newer version of unity and API level is not present in other setting tha...

Error while uploading unity game to play store - not compliant with the Google Play 64-bit requirement

Image
 While you are uploading your unity game to play store you are getting the following error message This release is not compliant with the Google Play 64-bit requirement The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 3. Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code it needs. This avoids increasing the overall size of your app. To resolve this error just try to build apk bundle by changing some player setting player setting -> other setting -> configuration scripting backend should be IL2CPP. In target Architectures ARMv7 and ARM64 should be enabled. Must take care that x86 architecture is disabled. If you are using higher Unity version than 2019.4 third architecture x86 is showing there so you don't need to worry about it just leave it and check ARMv7 and ARM64.   also make sure tha...