#📱┃mobile

1 messages · Page 3 of 1

west cobalt
#

lol., didnt notice it

glossy sluice
#

Others using linux

#

All is fine i appreciate your help

#

With mac is different

#

Hope you know a way

#

Thanks in advance

glossy sluice
west cobalt
#

let me try ...give some time please...

glossy sluice
west cobalt
#

okay

#

go to control panel

#

u will find an option "advanced variables setting"

#

well....srry ....find out yours configuration as yours one is a mac os

#

u must have environment variables option there

#

over there u have to create new variable for user(not for the system)

#

name it by "JAVA_HOME"

#

and paste the path u copied then save it

#

and restart your pc

#

i hope it will work this time

#

good luck on it

slim radish
#

hey there, for the last months, I have seen a lot of

Thread Performance Checker: Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a thread without a QoS class specified. Investigate ways to avoid priority inversions

on iOS 15 and 16 when running apps.
Is there any official info on this?

solid sail
#

I'm making a game about guessing words.
I'trying to hide "suggestions" while typing on android.
I'm manually opening up the on screen keyboard like this;
keyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.NamePhonePad, false, false, false, false);

I think there is a way to do it on Java but there is no property to hide suggestions on TouchScreenKeyboard class. I tried to export project and add this to AndroidManifest.xml but it didnt work.
android:inputType="textFilter"
and i tried this one;
android:inputType="textNoSuggestions|textVisiblePassword"

Details:
*I don't wanna create custom unity ui keyboard for players
*I don't wanna hide the textbox that comes with this TouchScreenKeyboard.

I know I can create a custom java library and rewrite the whole TouchScreenKeyboard library to add this feature but is there any other way to do this inside of Unity without coding my own soft keyboard library?

languid shore
#

hi, can help me this?

tired lily
#

where is your app-ads.txt hosted? did you set it up?

languid shore
#

yes

tired lily
#

so what's your developer website url and what happens if you try to access app-ads.txt there?

languid shore
tired lily
#

assuming your youniverse.game url is in your listing, just give it some more time. I've had to wait almost 2 days before

languid shore
#

oh really?damn

green scarab
#

Well guys I'm back again lol. I am still trying to get leaderboards to work on my game, and its still not working. Looking at logcat its giving me this error whenever I try to pull up a leaderboard:

AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='initialize' signature='(Lcom.unity3d.player.UnityPlayerActivity;)V' in class Ljava.lang.Object;

I'm just using Social.ShowLeaderboardUI() to show the leaderboard.

On top of that, whenever I try to report a score it says leaderboard not found. Any help would be appreciated!

tired lily
#

usually this indicates a proguard problem

green scarab
#

I have a custom proguard file. Here's the contents:

-keep class com.google.android.gms.* { }
-keep class com.google.android.gms.games.* { }```
#

What exactly could the problem be?

tired lily
#

based on your snippet, it looks like the static method initialize is being stripped from com.unity3d.player.UnityPlayerActivity

#

is that the whole error in logcat?

green scarab
#
2022/10/27 01:12:51.567 14559 14580 Error Unity AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='initialize' signature='(Lcom.unity3d.player.UnityPlayerActivity;)V' in class Ljava.lang.Object;
2022/10/27 01:12:51.567 14559 14580 Error Unity java.lang.NoSuchMethodError: no static method with name='initialize' signature='(Lcom.unity3d.player.UnityPlayerActivity;)V' in class Ljava.lang.Object;
2022/10/27 01:12:51.567 14559 14580 Error Unity     at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:162)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at android.os.Handler.dispatchMessage(Handler.java:102)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at android.os.Looper.loopOnce(Looper.java:226)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at android.os.Looper.loop(Looper.java:313)
2022/10/27 01:12:51.567 14559 14580 Error Unity     at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
2022/10/27 01:12:51.567 14559 14580 Error Unity   at UnityEngine._AndroidJNIHelper.GetMethodID (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0 
2022/10/27 01:12:51.567 14559 14580 Error Unity   at UnityEngine.A
#

this is a little unreadable give me a second

#
 AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='initialize' signature='(Lcom.unity3d.player.UnityPlayerActivity;)V' in class Ljava.lang.Object;
 java.lang.NoSuchMethodError: no static method with name='initialize' signature='(Lcom.unity3d.player.UnityPlayerActivity;)V' in class Ljava.lang.Object;
     at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:162)
     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
     at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
     at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
     at android.os.Handler.dispatchMessage(Handler.java:102)
     at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
     at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
   at UnityEngine._AndroidJNIHelper.GetMethodID (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>   at UnityEngine.A
novel hill
#

can anyone tell me what unity modules do i need to port a simple pc game to android

#

in the android dev module, there are a couple of extra stuff. Do i need those

green scarab
#

show me a screenshot pls

#

I haven't looked at it in a while

novel hill
#

theres android sdk and jdk stuff

#

and open jdk

green scarab
#

well assuming you haven't already installed all of that then yeah install that

novel hill
#

while coding for android do i have to write code in java instead of c#

robust lintel
#

How would I find out about device onscreen keyboard sizes. I've noticed there's some scripts to determine the size of the specific device, but I would like an idea of many different phone devices cause right now my phone keyboard kinda butchers a lot of my screen space and I'm trying to build around that.

novel hill
analog plover
#

Unity uses them to build the mobile app package.

fervent geyser
#

hi guys, i need to embed my unity app in a native ios. It it possible to send a string while launching from native? How can i reda the message in my unity library?

tired lily
glossy sluice
glossy sluice
glossy sluice
west cobalt
#

only if you can provide all the stuffs what unity gets from that location

humble palm
#

When you test iOS builds do you tend to/recommend testing it on your personal phone or an old phone or a used testing device? Provisioning profiles are pretty locked down as I understand it to only run that app on that version, cert and device, but just wondering if there any concerns I wouldn't think of.

humble palm
#

Also developer mode and account settings

sleek eagle
lyric frigate
#

Is there a difference in performance if :

  1. i create one object in Blender, import it into Unity and use it 100 times as a prefab.
  2. i create this mesh 100 times in Blender and combine it to one object and export it to unity.
swift jetty
lyric frigate
glossy sluice
tender summit
#

@fallen compass hey so in testing with android logcat but not sure what to look for

#

i see a bunch of red lines but it dont make much sense

#

this seems most viable

#

dunno

#

for anyone that doesnt know

#

when i play the game in the editor it all works fine but when i export it to my phone it doesnt work

#

it tryes to start, but doesnt

#

says begining of crash

tired lily
#

com.facebook.FacebookContentProvider is not found. Either you're missing that dependency or proguard has removed it. Edit proguard-user.txt and add
-keep class com.facebook.FacebookContentProvider { *; } (enable custom proguard if not already)

tender summit
#

i removed facebook sdk all together and still the same resault

#

im updating now the editor

#

see if that fixes it

#

my current version is 2021.3.6f1

tender summit
#

updating to the latest did nothing

tired lily
#

if you removed the facebook sdk, then what is accessing the FaceBook content provider?

#

did you edit the android manifest?

tender summit
#

that log is with facebook sdk

#

i removed sdk after that log

#

havent tested now

#

ill post all the log now

#

then theres this

#

and again something about facebook for whtever reason

tired lily
#

do you have anything in your android manifest that references FacebookContentProvider?

tender summit
#

ill check

#

probably have

#

since facebook is too lazy to setup an uninstall...

#

culd the splash thing be causing this?

tired lily
#

normally you'd have a build post processor that would tweak the android manifest, so you wouldn't have to do anything but delete the sdk. Unless you did something wrong or edited something manually

tender summit
#

i did edit something manually,

#

its something we have to aways do

#

becouse lazy facebook

#

theres a bunch of stuff

#

in all of them

#

wuld unity regenerate if i just delete them

tired lily
#

those ones, yes

#

look at Assets/Plugins/Android/androidManifest.xml, I assume you have a custom main manifest

tender summit
#

i havent made a custom one

#

so i delete them all?

tired lily
#

then you probably have a postprocessor modifying it still

#

are you sure you deleted all the facebook stuff?

tender summit
#

i just deleted the facebook folder

#

dont see anything else regarding facebook

tired lily
#

you must have something, or it's a dependency of something else

tender summit
#

i didnt see anything about facebook in dependecies

tired lily
#

close Unity, delete $ProjectRoot/Library and build again

tender summit
#

this?

tired lily
#

yes

tender summit
#

ok

tender summit
#

still same thing

#

will have to remove packages till it starts working

tired lily
#

you definitely missed either Facebook itself or something that depends on Facebook and is pulling it into your project

robust lintel
#

Just a general question, mostly related to tmpro and seems most relevant on mobile, but how do I smooth out my text more depending on different aspect ratios? It just seems to be extra jaggy on some ratios which further creates problems with the outlining shader options.

#

I've got the anchors/pivot presets correct, and my text autosizing, so while everything else looks good, the text is what's being the problem.

urban moon
#

What could be the reason ads are not displayed on mobile build while on editor they work ?
I have a button which calls "ShowRewarded" methode. Calling the methode does work but the ad is not loaded.
On development build i get "AdFailedLoad" (OnFailedLoad) error.

tired lily
#

I don't work with Unity mediation (I use applovin), but usually the editor is just fake placeholder ads that are only useful in confirming you're calling methods in the right order. Check your configuration. There is nothing useful in the error message? You should also confirm that the sdk initialized without issue

#

Did you set up a game ID in Edit > Project Settings > Services? Your init lacks a game ID and the docs for your mediation provider say that's where it goes to find it if you don't provide one explicitly

urban moon
# tired lily Did you set up a game ID in Edit > Project Settings > Services? Your init lacks ...

Yeah i have set up mediation.
I have linked the unity project id and recieved game ids. Unluckily there is no error beside methode "void AdFailedLoad(object sender, LoadErrorEventArgs e)" is called.
Intialization seem to be completed successfully.
No ads are shown in dev build neather in google play internal test build.

I have added a test device aswell on dashboard.unity3d with my play store advertising id

tired lily
#

android or ios? Any errors in logcat or xcode?

urban moon
#

android, no error log from logcat (root)

tired lily
#

set a breakpoint on your ad load failed method and inspect the args, hopefully there's more info in there

urban moon
# tired lily set a breakpoint on your ad load failed method and inspect the args, hopefully t...

"Autoconnected Player "Autoconnected Player" Ad failed loadedException raised while retrieving the Ad Unit Configuration: com.unity3d.mediation.j0: Failed to fetch Ad Unit due to connectivity issues: Request to https://mediation-instantiation.unityads.unity3d.com/v1/waterfall failed due to java.io.IOException: Instantiation Service configuration request failed with http status code 404 and server response: ad unit configuration not found for game id: XXXX, ad unitid: XXXX"

tired lily
#

well there you go, looks like something is wrong with your waterfall configuration

tired lily
#

I assume the game id and ad unit id from your error match your configuration, right?

#

and you're requesting with an ad unit id of "Rewarded_Android" and not the waterfall name?

urban moon
rancid crypt
#

Whenever I try to submit my game to the ios app store they keep saying they can't get the iap working. and that they get this error "purchasingUnavailable" any idea how to solve this?

sleek eagle
zinc geyser
#

Hello guys!
I am developing an Android app, and I am using certain Android APIs that must run on the UIThread.
So I created a plugin and inserted it to the Unity, I invoke methods on the UIThread by calling something like _activity.Call("runOnUiThread", new AndroidJavaRunnable(func));

My question: is the thread that makes this _activity.Call("runOnUiThread", new AndroidJavaRunnable(func)); a main thread?
When I make such a call, is the func executed on the thread it was called, or is it executed on the other thread?

glossy sluice
#

I have a question friends, After I try to build an apk for google play store several erros comes up with the information that my code runs dublicate billing adress. So, If I delete the one duplicate plugin in one of my several back ups does it delete in every back up ?

glossy sluice
#

I have a question friends, After I try to build an apk for google play store several erros comes up with the information that my code runs dublicate billing adress. So, If I delete the one duplicate plugin in one of my several back ups does it delete in every back up ?

brazen birch
#

Hard to say with certainty though, I don't use or recommend Unity's ad or inapp services.

tender summit
#

hey guys

#
using Facebook.Unity;
using UnityEngine.EventSystems;

public class StartFacebook : MonoBehaviour
{
    private void Awake()
    {
        if (!FB.IsInitialized)
        {
            FB.Init(() =>
            {
                if (FB.IsInitialized)
                    FB.ActivateApp();
                else
                    Debug.LogError("Couldn't initialize");
            },
            isGameShown =>
            {
                if (!isGameShown)
                    Time.timeScale = 0;
                else
                    Time.timeScale = 1;
            });
        }
        else
        {
            FB.ActivateApp();
        }
    }
    private void Start()
    {
        EventSystem[] evs = FindObjectsOfType<EventSystem>();
        if (evs.Length > 1)
        {
            int i = evs.Length;
            while (i > 1)
            {
                Destroy(evs[1].gameObject);
                i--;
            }
        }
    }
}
#

i have this script that i run on my mobile projects

#

do i need it to see installs on facebook?

#

does it matter?

#

im only concerned for installs currently

glossy sluice
wispy bronze
#

How are games like Call of Duty run on mobile? As in, how are they optimized? I'm having difficulties getting 60FPS with very low draw calls and vertices. Yet I see these super high quality games on mobile.

tender summit
#

using a single material

#

cheap shaders

#

put everything on an atlas

#

also set your game to 60fps

#

for some reason by default they run at 30

glossy sluice
wispy bronze
#

Cheap shaders? Like Unitys Mobile Shaders?

#

I use very little materials in my game, I have a 16x16 color palette which almost every model uses in my scenes. GPU instancing enabled as well.

#

What is that Atlas thing?

#

Oh I looked it up! So essentially I put many different textures into one thats a little higher in resolution, so there could be possibly only one material as you said.

tender summit
#

thats all can say

#

i havent gotten problem with fps

latent violet
#

Help

#

Anyone here ever used unity recorder asset before?

#

Am trying to record a clip via the Unity recorder asset but when i try to record, it throws an error saying something about videoEcoder unsupported

brazen birch
# wispy bronze What is that Atlas thing?

Unity needs to do a batch call for every material, and every non static mesh, by default.

So a texture atlas lets you combine many materials into a single material - so you can render the display in a single batch call... It is extremely important on XR and mobile. It essentially sacrificed ram for less GPU and CPU use.

#

Remove all unused faces.. static objects. Light baking.

glossy sluice
#

My app have after duplicate a size of 2,29gb

wispy bronze
gritty depot
#

Hey guys, what's the best way to make touch controls on screen? I want to make two buttons on the left of the screen (left-right) and two on the right (jump-dash)

opaque quail
#

Hi, does anyone know how to sign an .aab?
I have tried to follow the steps that Google Play gives downloading pepk-src.jar but it does not say "there is no main manifest in pepk-src.jar"

quartz lava
#

Hi, I'm actually trying to build an apk but unity is throwing the above error. I reinstalled and tried different SDK and NDK but still it is not working. IS there anyone know the fix.

rotund knot
#

Do you have gradle installed? Also, Lower your target API level or set it to use highest installed 🤔.
Btw click on the first error for more details

quartz lava
rotund knot
#

Okay, can you click on the third error too for more details?

rotund knot
tame kettle
#

Does anybody have experience removing frameworks from their XCode project using PostProcessBuild?

quartz lava
rotund knot
quartz lava
rotund knot
#

If you're, disable it rebuild and see if it might work.

gritty depot
#

How can I make the hitbox of a touch control button bigger without making the sprite bugger?

sonic otter
#

edit the collider for it directly

latent violet
#

@quartz lava i had similar issues but i solved it

#

Here's the things to know so you'll never have issues with building to android :

  1. If you have a SDK in your project(Facebook, game analytics, ad, firebase e.t.c)...always force resolve

  2. Before building, make sure you have steady internet connection... Trust me... This is needed to get Android SDKs

  3. Select your minimum SDK to be 6.0 (5.1 below is long gone since phones don't support them anymore)

  4. Build while internet connection is on.... And if you have errors building, look at the console, if you don't know how to read console error... It's easy

#

Follow these steps and you'll never have build issues anymore... It works for me and has been working for me... Now i don't even stress when building to android

glossy sluice
#

Hi guys, I Just get into mobile game development using unity and faced a small issue related to the performance and entity speed using Vector3.MoveTowards. In Play Mode it is much faster then in build. I did a little research and people said I should use Time.deltaTime * Speed instead of a fixed float. Anyways - That won't solve the issue. It makes both speeds a little slower but the difference from mobile build to unitys play mode is still about times 30.

Edit: It was related to the CanvasScaler - The speed was fine but the target had to travel a longer distance due to the scaling..

ripe rune
#

Hello I making an app and I wonder how can I make a button when pressed you download pdf file with all the thinks you want to learn
Can someone help?

haughty escarp
#

Hello! We are struggling with Android 12, because our Unity app gets a black screen after Splash Screen on Android 12 devices. Do you how to solve this? Thanks in advance

vague pilot
#

Which one should I add the option to have ads to support me on my game? ☑️ = yes ❌ = no

brazen birch
#

I think we've reached a point where you are better off with help from someone else or finding the answers on your own.

glossy sluice
#

I have a question friends, After I try to build an apk for google play store several erros comes up with the information that my code runs dublicate billing adress. So, If I delete the one duplicate plugin in one of my several back ups does it delete in every back up ?

vapid dirge
#

Hello, i have a problem with touch input. I want to ,,touchInput.GetAxis,, only when the user is touching the green space, And I dont wnat it to get the inputt when touching some UI elements.

lusty star
#

Hello. How do you deal with these things on mobile screens? Is there maybe a way to check for it in code? Or do you just ignore it (lol)?

vague pilot
#

How do I track when the screen is swiped so basically Input.GetKey(Keycode.W) except touch

vale ermine
vale ermine
# vapid dirge Hello, i have a problem with touch input. I want to ,,touchInput.GetAxis,, only ...

using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.EventSystems;
public class MouseLook : MonoBehaviour
{
public float mouseSensitivity = 100f;
public Transform playerBody;
float xRotation;
void Update()
{
float mouseX = 0;
float mouseY = 0;
/*
if(Mouse.current != null)
{
mouseX = Mouse.current.delta.ReadValue().x;
mouseY = Mouse.current.delta.ReadValue().y;
}
if (Gamepad.current != null)
{
mouseX = Gamepad.current.rightStick.ReadValue().x;
mouseY = Gamepad.current.rightStick.ReadValue().y;
}
//float mouseX = Input.GetAxis("Mouse X");
//float mouseY = Input.GetAxis("Mouse Y");
*/
if (Touchscreen.current.touches.Count == 0)
return;
if (EventSystem.current.IsPointerOverGameObject(Touchscreen.current.touches[0].touchId.ReadValue()))
{
if (Touchscreen.current.touches.Count > 1 &&
Touchscreen.current.touches[1].isInProgress)
{
if (EventSystem.current.IsPointerOverGameObject(Touchscreen.current.touches[1].touchId.ReadValue()))
return;
Vector2 touchDeltaPosition = Touchscreen.current.touches[1].delta.ReadValue();
mouseX = touchDeltaPosition.x;
mouseY = touchDeltaPosition.y;
}
}
else
{
if (Touchscreen.current.touches.Count > 0 &&
Touchscreen.current.touches[0].isInProgress)
{
if (EventSystem.current.IsPointerOverGameObject(Touchscreen.current.touches[0].touchId.ReadValue()))
return;
Vector2 touchDeltaPosition = Touchscreen.current.touches[0].delta.ReadValue();
mouseX = touchDeltaPosition.x;
mouseY = touchDeltaPosition.y;
}
}
mouseX *= mouseSensitivity;
mouseY *= mouseSensitivity;
xRotation -= mouseY * Time.deltaTime;
xRotation = Mathf.Clamp(xRotation, -80, 80);
transform.localRotation = Quaternion.Euler(xRotation, 0, 0);
playerBody.Rotate(Vector3.up * mouseX * Time.deltaTime);
}
}

#

this might help

#

Source: YouTube/GDTitans/FPSMobileInputControls

vapid dirge
#

Oghhhhhh

#

Its thissss

vapid dirge
wispy bronze
rocky bridge
#

How to format an android manifest?

#

where to put the "uses permission" tag in the manifest?

celest oasis
#

Anyone have any thoughts on the best multiplayer platform for a Unity mobile game?

#

Unsure of the relative merits of Gamesparks / Playfab / Photon etc

hidden urchin
#

I have a game on Android and originally set the Target API Level to 31 since Google was getting me a warning and Minimum API Level to 22 (Android 5.1). I'm getting people telling me that they are not able to run the game on Android 11. The phone I'm testing on is Android 13 so it's hard to see what the issue is. Shouldn't the game work on all OS down to Android 5.1?

#

Also running Unity 2021.3.13f1 LTS if that impacts anything

cursive crescent
#

is there a good tutorial on how to build to iOS when im on windows

#

what i found is using mac in virtual box with some other apps just wanted to ask if theres an easier way

hidden urchin
#

Can also use cloud build to send it straight to the app store/testflight

cursive crescent
#

thanks

hidden urchin
#

So ran my app through browserstack to see if it runs in Android 10/11/12 etc, and the app does run. But I have a report from someone who said they're running Android 11 on a specific phone and can't install the game. Are there phone compatibilities?

#

Is it an architecture issue since I'm only building for ARM64?

hidden urchin
#

Seems like the device in question is running Android 11 on ARMv8-a

brazen birch
final herald
#

I'm using in app purchasing but neither of OnInitializeFailed or OnInitialized is called when testing on Android

#

ideas?

tired lily
final herald
#

I was using Codeless IAP before, logcat only printed "Is Not Initialized" so I changed to code

#

by the way I never know how to see Debug.Log("") messages in logcat

#

so instead I used a actual UI text to debug

#

like in the above code

tired lily
#

that's a bad plan that will lead you to misery later, the least problem of which is that if your code throws an exception you won't see any output unless you catch exceptions in every possible place

#

where is the code that calls these two methods?

final herald
#

these two are just directly inherited from the IStoreListener

#
namespace UnityEngine.Purchasing
{
    /// <summary>
    /// Implemented by Application developers using Unity Purchasing.
    /// </summary>
    public interface IStoreListener
    {
        /// <summary>
        /// Purchasing failed to initialise for a non recoverable reason.
        /// </summary>
        /// <param name="error"> The failure reason. </param>
        void OnInitializeFailed(InitializationFailureReason error);

        /// <summary>
        /// A purchase succeeded.
        /// </summary>
        /// <param name="purchaseEvent"> The <c>PurchaseEventArgs</c> for the purchase event. </param>
        /// <returns> The result of the successful purchase </returns>
        PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs purchaseEvent);

        /// <summary>
        /// A purchase failed with specified reason.
        /// </summary>
        /// <param name="product"> The product that was attempted to be purchased. </param>
        /// <param name="failureReason"> The failure reason. </param>
        void OnPurchaseFailed(Product product, PurchaseFailureReason failureReason);

        /// <summary>
        /// Purchasing initialized successfully.
        ///
        /// The <c>IStoreController</c> and <c>IExtensionProvider</c> are
        /// available for accessing purchasing functionality.
        /// </summary>
        /// <param name="controller"> The <c>IStoreController</c> created during initialization. </param>
        /// <param name="extensions"> The <c>IExtensionProvider</c> created during initialization. </param>
        void OnInitialized(IStoreController controller, IExtensionProvider extensions);
    }
}
#

so they should be called internally

#

at least they are in the Editor

#

but not on Android and I don't know why

tired lily
#

yes, and you initialize with what? What implements IStoreListener?

final herald
#

it's just a standard IAPManager.cs like every single one out there

tired lily
#

did you initialize UGS first?

final herald
#

what is UGS?

#

I don't think I need it

tired lily
#

Unity Gaming Services. The docs for setting up Unity IAP say this: "If you attempt to use the Unity IAP service without first initializing Unity Gaming Services, you will receive the following warning message:" so my assumption is you are getting a warning in the logs that you ignore because you're debugging using UI text

#

a lot of these APIs don't function in the editor or are stubbed out, so you wouldn't know anything is wrong necessarily until you tried it on an actual device

#

I'm unfamiliar with Unity IAP so I don't know if this is the case, but it's common for ad networks

final herald
#

every single tutorial out there didn't mention this and I know some friends all set it up this way but it works on their sides

#

now the question is how do I check the logs in logcat

#

does Debug.Log() gets included?

tired lily
#

yes, filter by Unity tag

final herald
#

of course I tried that, but no Unity stuff at all

#

so they must just got all stripped?

tired lily
#

make a dev build and make sure you can see output from that process to start with

willow verge
#

Just wondering if anyone can help me with this — I'm really stuck! How can I use a pre-built .so lib file in my android project? I want to use classes derived from monobehaviour that are inside the .so file and attach them to gameobjects. I have been looking at dllimport and dllexport but I'm not sure if those are applicable in my case. Also, I do not have access to the source code. Thanks in advance!

tired lily
willow verge
#

Thank you! So using this method, can I create a monobehaviour script using only the functions/methods from the .so file?

tired lily
#

yes, if you know what they are and they're accessible

vague pilot
#

Does anyone know how to fix this error I have tried a lot? but couldn't get it working

tired lily
#

did you create a placement called Interstitial_Android for your game (and assuming 5010385 is your game id)?

vague pilot
#

wrong pic

#

wait nvm put could You see the error selected?

tired lily
#

yes ... that's the Unity side. Did you do the configuration part in your dashboard?

vague pilot
#

sorry

tired lily
#

hmmm looks okay to me. Make sure there aren't any dumb errors (spacing in names). It might also take a little while before your ad units become active. How long ago did you set this up?

vague pilot
#

2 days ago

#

and copied the ID from the dash board

willow verge
tired lily
# willow verge What do you mean by accessible?

are they exported functions? Are you able to marshal data to them that matches their argument types? Is it designed to be interacted with from Unity? There might be some other hurdles for you

tired lily
vague pilot
tired lily
#

I don't use unity ads directly, but normally there is more configuration than just creating ad units. Did you do any setup for your waterfall?

vague pilot
tired lily
#

hmmm our dashboards are different, mine literally calls it "placements". If you go to the setup guide, does it say anything in there?

vague pilot
tired lily
#

no, Project Overview -> Setup Guide -> and then on mine there are 4 steps, step 3 is configure ad units and step 4 is setup placements

#

otherwise your setup looks correct to me, and I would just verify that it's also not working on a physical device since the sdk isn't really running in the editor

vague pilot
#

no other meditation stuff

tired lily
#

maybe somebody more experienced than I can chime on on that, I haven't had to mess with the configuration for ages. There is usually a test game id and test ad unit you can use, do those work?

final herald
# final herald

again, if anyone has any ideas, please let me know
( Update: it was because I didn't add
implementation(name: 'common', ext:'aar')
in my gradle file)

fallen compass
# final herald

This doesn't look like your IDE is setup correctly - inconsistent colouring.

Are you actually calling the initialization of purchasing?

#

nm , you edited your msg while I was scrolled up

undone narwhal
#

Hey guys I have a been making an android game and when I try to build the game and it's almost done the build fails and drops me this error:

*In english Win32Exception Native error= The system cannot find the file specified
I am stuck at this can you pls help?

tepid saffron
#

Hi is there some recommended number of polygons for character in mobile game

sleek eagle
tepid saffron
#

Is there anything that can help me with this?

sleek eagle
kind wren
#

anyone know how to fix this?

sleek eagle
kind wren
#

And thats where things get complicated

#

It give a path to jdk something but nothing else

west cobalt
#

Does 2021 Terrain still lags in Mobile?

#

I mean....is terrain now usable in mobile Devices?

kind wren
#

anyone know how to fix this? "fix object name" button isnt doing anything at all

undone narwhal
#

Hey guys I have been making an android game and when try to build it this error pops up
The system cannot find the specified file unity
See?

Can you pls help? I have been stuck at this for weeks

dusk sage
#

How to fix "Gradle build failed. See the console for details."? This is what i got in console:

tired lily
#

might be a normal error. Are you running test ads? You won't always have an ad to show if no ad networks are willing to supply you with one

tired lily
tired lily
dusk sage
#

i dont really understand what they want to mean

tired lily
#

that sounds like a good reason to google/post them though, right? Lots of things can go wrong in an android build. It's almost impossible to help people when they won't post what the actual error(s) are

glossy sluice
#

This is what he means

tired lily
#

What's the confusion with your error? looks like you just need to enable useAndroidX. Build settings -> publishing -> use custom gradle properties template. Add line android.useAndroidX=true and line android.enableJetifier=true to it if they don't exist and rebuild

tired lily
#

do you have any missing dependencies?

dusk sage
tired lily
#

Did you install any dependencies yourself? Are you using the external dependency manager? If you are, did you resolve with it?

dusk sage
tired lily
#

you didn't install anything third-party?

dusk sage
#

some packages

dusk sage
tired lily
#

uh, if they're needed to build your project and make it work then yes?

dusk sage
tired lily
#

I haven't encountered your specific problem before but some google results are promising

dusk sage
tired lily
dusk sage
#

It started to work when i removed unity ads

#

So there still a problem. I cant build with unity ads package installed.

glossy sluice
tired lily
#

package manager, external dependency manager, anything you manually installed to Plugins/Android or any subdir that matching that scheme, any scripts that do postprocessing on your project (BuildPostProcessor, IPostGenerateGradleAndroidProject) could add or edit them, any dependencies that are themselves dependencies of your dependencies and are resolved when you build the project

#

I assume you're trying to debug your duplicate class issue, so I'd be exporting the project and looking at what's in your build.gradle script for unityLibrary

hushed harbor
#

Hi, im trying to connect unity to my phone with the app Unity remote 5, but my phone is not detected here in device settings, i don't why 😭 can someone help me please :d

tired lily
#

did you enable developer mode on the device, allow debugging, and checked if it's detected by adb?

hushed harbor
tired lily
#

you already have it in your android sdk under platform tools

hushed harbor
rugged bough
#

Anyone got experience with Kindred SDK for monetization ? The idea sounds pretty good, but how does it work out in reality

tired lily
#

assuming you added the android support module so you can build to android devices, correct

hushed harbor
tired lily
rugged bough
#

affiliate can be pretty profitable, but usually not something that is put in an app

#

if i understand it right

#

was just interested if someone actually tried it

#

but calculation on their site wasnt super profitable

hushed harbor
#

its still not working;( I did all the things to do on my phone but nope 😦

rugged bough
#

Google and see some stackoverflow threads too

#

I assume the sdks found in android studio is downloadable from their android google website too

hushed harbor
rugged bough
#

When i used pc i had littke problem

hushed harbor
rugged bough
#

Okay

#

Like u can access files etc?

hushed harbor
#

ye

rugged bough
#

You restarted unity?

#

Try restarting it and let the cable still be connected

#

I only build my games to the phone but the device not showing up is the same problem i had

#

You have android studio?

hushed harbor
#

when i connect my phone to my pc its written that i'm connected, but its not written that USB debugging is on

#

but i did it

hushed harbor
#

but i just downloaded it

rugged bough
rugged bough
#

Okay id say try see if your device shows up in android studio

#

If it does, use the sdk in unity path

hushed harbor
#

i never used android studio atm, idk how to do^^

rugged bough
#

Create a "empty" project and call it android or smthng, then u go to tools and sdk manager

#

From there you can find out sdk etc

hushed harbor
#

hmm ok i'll try it, just need to download some things

rugged bough
#

Ya

#

Use google too

#

Android studio is well documented

#

Stackoverflow and all

hushed harbor
#

okay thanks

rugged bough
#

Np hope u work it out

hushed harbor
#

what do i do here?

#

im sry to bother you haha

rugged bough
#

That worked for me but it can be a bit messy and not knowing what is wrpng sometimes

#

Sdk tools

#

U see that window

hushed harbor
#

it is

#

that's my screen ya

rugged bough
#

Yeah but the one above

#

Where it says "Sdk tools"

hushed harbor
#

oh ya

rugged bough
#

Take the google usb driver too

#

Then since u have the sdk etc, probably got it now that you downloaded android s

#

Studio

#

Try also as said install google usb driver in the list

#

Then once u done go to unity, and pref, and insted of android sdk with unity u reference that sdk

#

For me i got a note saying i had another path to a sdk and i pressed that to use it

#

Sooo.. for me i unchecked sdk with unity and put the path to this one

hushed harbor
#

do I need to download sdk android?

rugged bough
#

U got it

#

I said installen on the sdk tools list

#

Installed*

#

Jump in to unity and preferences and at the unity android sdk (or something alike) u now give the other (newest) sdk u got from android studio

#

Got it?

hushed harbor
#

im here, but i don't understand how to transfer new sdk, well how to take it

rugged bough
#

Uncheck android sdk

#

Uncheck the check mark

hushed harbor
#

done

rugged bough
#

If it asks id you want to use the other one and locates it good

#

Else search google for android studio android sdk path

hushed harbor
#

i copied my sdk path in it

#

so normally it's fine

#

it changed nothing unfortunately, i think the problem come from my phone, because USB debugging message should be here, and it's not

rugged bough
#

Show me a scrn shot of the sdk path

#

To make sure

#

And hmm

#

Also on phone, try to revoke the debugging

#

And allow it once again when putting in your cable

hushed harbor
#

that the one i took here

rugged bough
#

Okay good

#

Also did u add the google usb driver thingy from that list too?

hushed harbor
#

yup

rugged bough
#

Heard it worked for someone else

#

Hmm

#

Not sure then

hushed harbor
#

that is so frustrating

#

idk what to do then'.', I watched different tuto but none worked

#

but i've done what they did xD

rugged bough
#

Yeah very annoying

#

Basic, but you restarted the computer?

#

Sometimes it just popped for me

#

Like taking out the usb cable and put it back in

verbal scarab
#

Hey there! I am having errors when trying to build for android release build. They seem to be coming from Java JDK and Gradle. Does anyone know what is going on?

rugged bough
#

Try this, saw it on unity forum, @hushed harbor I resolve the problem. In USB connection mode, on my phone, there are 4 options:
Transfer files
transfer images
Connect a MIDI device
Charge this phone.
I ONLY changed the connection mode to TRANSFER IMAGES. After that, I reveived a prompt asking me to viladate this connection mode. I did it and it works fine.

hushed harbor
#

thanks for your help but idk why I'm cursed xD

tired lily
verbal scarab
tired lily
#

does their sdk assume admob is installed? That's what the problem I encountered was

verbal scarab
#

I dont think so .. I mean i ve published for them before and it is always error after error lol

tired lily
#

specifically I had the fyber ad network installed which referenced admob, so I had to install + disable admob

verbal scarab
#

I didnt have issues with AdMob the other time

#

It uses Facebook SDK though

tired lily
#

are you sure it's the game analytics sdk? the fyber sdk was installed in my case due to having fyber as one of the ad networks used in our mediation layer

#

assuming that's it, you could either try my workaround or downgrade to a previous version of fyber that doesn't cause the problem. It's kind of old-'ish (a year+?) though

verbal scarab
#

How would i disable it?

#

I dont even know what fyber is honestly

tired lily
#

include it as a dependency, then edit your android manifest to:

  1. remove its InitProvider: com.google.android.gms.ads.MobileAdsInitProvider (it will crash app on launch without a valid application id)
  2. remove Service: com.google.android.gms.ads.AdService
  3. remove meta-data (optional): com.google.android.gms.ads.APPLICATION_ID
#

alternatively, the last fyber version I used that didn't cause a problem was 7.8.4 iirc

verbal scarab
#

how can i change to that version?

#

when you say include it as a dependency on the step above i dont know what you mean 🙂

#

sorry for that i m really new to this

tired lily
#

how is it getting added to your project?

#

something is causing it to be included in your build. If you're using external dependency manager, you might have dependencies in XML that reference it directly or indirectly

verbal scarab
#

So it is not something i did

#

Their SDK comes as a unity package

tired lily
#

I assume they have an example app, does that one build? I'd bet it doesn't

verbal scarab
#

Ahh .. i dont want to screw in this channel .. but they dont have s@@@

#

All they have is a package to install and it always causes different type of errors lol

#

I ll probably have to wait for Monday to contact them

tired lily
#

do you just need it to build or are you making something for production? The easiest solution would be to test it with dev builds (no proguard) and then complain on Monday

verbal scarab
#

I m making a build for Google Play

#

The game builds fine without it

#

Let me do a quick development build to see if i m actually correct

tired lily
#

you'll bypass that error above if you do a dev build, you're getting it from a proguard validation step

verbal scarab
#

The build succeeds as dev build

#

Well i guess i have a day off tomorrow lol

tired canopy
#

Anyone knows the solution for text (legacy) and textmeshpro not showing in some android devices? I have tried a bunch of things from Unity forums but nothing seems to be working

Everything else in the UI is showing properly, just the text is missing

I've tried changing the canvas from overlay to world space, creating legacy instead of textmeshpro and a bunch of stuff

patent rivet
#

graphic raycaster is not working on android ,it works fine on my pc but on android doesn't work it doesn't work

glossy sluice
#

This errors comes up after trying to build an apk on Imac for google store. It didnt work. Who have an idea?

tired lily
#

the error's pretty clear. Find out what's adding an extra copy of google play billing and fix or remove it

quartz kernel
glossy sluice
#

I have an issue where my movement buttons for Android work in Remote and in editor, but in build they dont execute the assigned scripts.

I originally developed The game on pc and am trying to make it work on my phone.

Buttons have a separate script where left and right buttons change the move float to 1 and -1 in the original movement script.

Jump key has a script assigned which just executes the jump from the other movement script.

In build these buttons can be pressed but they dont do anything.

Can anyone help?

#

When I was testing the buttons in Unity Remote 5, they worked without issues, but now they wont work on phone.

Editor playtesting works but that's useless if I can't play game on phone..

brazen birch
glossy sluice
# brazen birch You'll need to Debug it on the phone itself. You can use the built in Android l...

Movement on my character is through changing the rb velocity with the horizontal move float * movespeed. All movement is on Script A and work perfectly.

Mobile movement is through script B which is referencing script A and changing the move float to -1 on left and 1 on right. On pointer up, move sets to 0

I set up script B with referencing so that I wouldnt need to go through all levels to set player reference to the controls.

Basically Script B changes the move float which then causes movement in Script A's part.

Jump is just executing the Jump(); command from Script A in Script B

hollow umbra
#

When uploading an app to the appstore, is there a way to hide your personal name from appearing on the app store as the publisher?

tired lily
# glossy sluice Sounds easy so where I‘ll find it?

hard to tell without seeing your project. What third party dependencies do you have? Do you have a GooglePlayBilling that you put in your project somewhere? How do you resolve your dependencies? We can only guess from here

brazen birch
vague pilot
#

Hello I am making a game and I was wondering if anyone can play test it to give me recommendations bug reports etc I can send a pc Mac android or iPhone build

latent violet
#

Anyone knows how to get the new unity runner template?

#

I can't find where to download it and it's not in my latest unity hub

glossy sluice
verbal scarab
#

Thnx for the help the other day you were really close to that

#

I just didnt know how to implement the fix

gaunt cove
#

Hello everyone, we have a very weird bug with the app and it started after migration to plastic scm. We build the game for android with no errors in console but when we install the game it crash before it even opens. Since we didnt have any log or errors i launched the apk thru Android Studio and used Logcat to see what is going on and this is what i get upon launching the app.
If anyone has any idea please share.

#

Apk works fine when i build it in the project that is on github, so my best guess is that some android dependecies messed up upon migrating the project to plastic.

fluid dragon
#

Hi so I am not sure id I should ask this here or not, but I am trying to bypass my ssl pinning certificate on my android build to check my network traffic using mitmproxy for debugging. I couldn't find a reliable way to do this could someone point me in the right direction?

glossy sluice
#

I appreciate it. Here are my depencies:

tired lily
verbal scarab
#

Hey so i got an issue with my Release build again. While the development build runs fine on my mobile when i test the game, when i make a Release build it always crashes on startup before even displaying the Unity logo. Just a black screen and the app doesnt close but minimizes from the screen. Trying to reopen it when minimized doesnt work either as it just minimizes again. Do you know anything about what might be the cause of it?

tired lily
#

Do you have any output from logcat?

verbal scarab
tired lily
# glossy sluice I appreciate it. Here are my depencies:

check external dependency manager's resolved libraries, too. I see you have play billing in there, so something is pulling in an extra copy. Look through your third party dependencies and try to find it. It might be there directly, or referenced through a dependency xml file that EDM is using, or implicitly referenced by something else

verbal scarab
# tired lily Do you have any output from logcat?

I got an app Logcat Extreme on my phone. The error that seems to show up when i try to play the game is "not starting debugger since process cannot load the jdwp agent" this seems to repeat when i try to open the game.

#

There is also a popup that says "(Game name) is stopping"

tired lily
#

Why an app? you already have adb installed. I like to export to android studio and run a release build from there, it mostly does the right thing for you as far as filtering log messages goes

verbal scarab
#

Ok i will try that i havent used that yet

tired lily
#

if you look at Admir's output, you can see all the angry red that tells you exactly why the app isn't working. You're blind until you find out what's gone wrong in initialization

verbal scarab
#

Ok thnx for opening my eyes here 🙂 I m really new to this all

tired lily
#

atm you have 2 possibilities:

  1. proguard ripped something out that it shouldn't have (you'll see text like his)
  2. you have an ANR issue during startup on release builds, where you or one of your dependencies is stalling the main thread for so long that the OS decides your app is frozen and kills it
verbal scarab
#

Ok new information i think it is proguard

#

I had this enabled

#

After disabling it the app runs fine on my phone

#

But is Google Play going to accept it that way?

tired lily
#

okay, re-enable it, then look at logcat output for missing classes

#

yes, but it's just a matter of finding out what's missing and excluding those class(es) from being removed. We're talking a handful of text in proguard-user.txt now to fix it

#

you just need to find out what's gone missing

verbal scarab
#

i just installed Android Studio let me figure this out

#

@tired lily Should i worry about that?
Can i install it in a different location instead?

tired lily
#

you should use the sdk and ndk that Unity is using to build your app

verbal scarab
#

This is asked during Android Studio installation

#

Should i copy the path form Unity --> External tools and put it there then?

tired lily
#

if it's installing the sdk for you, fix it like it mentions. When you open your exported project Unity should have configured the right sdk for you. It's been a while since I installed android studio

verbal scarab
#

I think i can just probably choose another location

verbal scarab
#

@tired lily I went to Google Play to upload the new version of the app, as i had already uploaded the old one that wasn't working. Don't ask why i didn't check that, it is kind of embarrassing honestly. The old one was "In Review" status so no one saw that lol.

Now you think this will be fine and they ll upload the new version when that review passes?

#

I feel i m good, but i m not sure

#

I ll also try to read a bit about android studio tomorrow and try to find what caused the error then because it is almost 1am here and i think my main goal is completed

tired lily
#

well it's your call, they're not going to reject it because you didn't obfuscate your code

verbal scarab
#

ok nice i m glad this went well

#

@tired lily Thank you for your support during that stressful time ❤️

winged osprey
#

If I'm developing a VR game and testing it on my Meta Quest Pro, is there any way I can connect the editor to that for live debugging? If I want to see what certain properties are set to or make a change to test something, I don't want to have to rebuild the app.

sleek eagle
winged osprey
#

Anything that doesn’t require me to be on Windows or Mac?

#

I use Linux

quartz kernel
#

The only option you have for testing in editor is faking input like with the XR device simulator

winged osprey
proven mural
#

hi all

#

im new here

#

im developing a mobile game where swiping is the movement.
i.e

hold -> swipe upwards or downwards -> release -> then player character 'jump's from one place to another.

#

i been trying various things with the rigidbody and the input system but in execution it looks odd. the player will sometimes gain so much speed that it goes through collision walls

#

do you have any other suggestions on how to implement this kind of movement controls?

gaunt cove
# tired lily make a dev build, if it builds and runs you're probably looking at a proguard is...

Dev build also crashes before it even loads. I re-solved dependices, deleted library, apk still crashes on startup. We didnt import any new assets after migration, so the project should be the same, but still it works on git when we build but not when we build now on plastic.
In case anyone saw anything simillar here is the error from logcat, when i hook the apk to android studio

java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/collections/CollectionsKt
#

We even tried to download latest unity version. still the same, app crashes before it even loads.

kind wren
#

anybody know why this happen

#

it worked before

glossy sluice
tired lily
tired lily
glossy sluice
silver musk
#

Hey. Wrote up this code to get GPS user position data (in intervals when a button is pressed and on app start). It work's on my phone, but not on the Android 10 device that I'm actually building the app for. It seems to have a problem with getting location permissions from Android 10. What do I change? https://paste.ofcode.org/xadCBFPRQFrG5HRJ8iSVY4

The error:11-16 11:26:57.579 3966 3990 I Unity : Location service updates are not enabled. Check LocationService.status before querying last location. 11-16 11:26:57.579 3966 3990 I Unity : UnityEngine.LocationService:get_lastData() 11-16 11:26:57.579 3966 3990 I Unity : LocationService:LocationRefresh() 11-16 11:26:57.579 3966 3990 I Unity : 11-16 11:26:57.579 3966 3990 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) 11-16 11:26:57.579 3966 3990 I Unity : 11-16 11:26:57.581 3966 3990 I chatty : uid=10147(com.Microsoft.Maps.SampleProject) UnityMain identical 5 lines 11-16 11:26:57.581 3966 3990 I Unity : Location service updates are not enabled. Check LocationService.status before querying last location. 11-16 11:26:57.581 3966 3990 I Unity : UnityEngine.LocationService:get_lastData() 11-16 11:26:57.581 3966 3990 I Unity : LocationService:LocationRefresh() 11-16 11:26:57.581 3966 3990 I Unity : 11-16 11:26:57.581 3966 3990 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) 11-16 11:26:57.581 3966 3990 I Unity : 11-16 11:26:57.582 3966 3990 I Unity : KB: fetching GPS data... 11-16 11:26:57.582 3966 3990 I Unity : LocationService:LocationRefresh() 11-16 11:26:57.582 3966 3990 I Unity : 11-16 11:26:57.582 3966 3990 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

#

It used to work on a different build when I started the refresh interval from the beginning instead of having it start/stop depending on the button status.

analog plover
#

For one in Start you call RefreshLocation without waiting for the user to grant location permissions

#

and in the coroutine you wait for 10 seconds for the permissions and then continue regardless of whether the user gave permissions or not

silver musk
amber marten
#

Hey guys,
Does anyone have any idea of how to deliver and use play store asset bundles when developing Unity as a Library app?
(i.e unity is embedded into another android app)

vestal radish
#

help I've been prepared my JDK but Unity refuses to route to according path

rotund knot
rotund knot
mighty prawn
#

hey are here any german devs who can help me with a law thing? 😄 sind hier deutsche die mir bei was rechtlichem helfen können?

latent violet
glossy sluice
tired lily
#

how what calls? It's up to you to find whatever is breaking your project. Uninstalling stuff until you find out what it is would work, sure

cerulean yarrow
#

is it possible for me to use unity on my phone?

#

I know stupid question but might as well ask

willow verge
#

Hello!

I downloaded a sample android native plugin from unity docs.
https://docs.unity3d.com/Manual/android-native-plugins-call.html

My plan was to see how I can use .so files in my project. When I import the package, load the scene and hit play, I get an error dllnotfoundexception.

I've tried so many things and nothing works! I would really appreciate any help or suggestions! Thank you!

tired lily
#

you can't call native android functions unless you're running on android

neon thicket
#

@onyx raft There's no crossposting allowed in this discord.

glossy sluice
#

unity mediation isnt loading any editor test ads for me, and neither giving a message. I am able to initialize mediation services but loadAd call doesn't load any editor test ad, in debug logs show that this code isn't being called at all

#

I'm using unity mediation btw, and I have some questions about that. Will unity mediation continue to function the way it is and allow bidding, or will most ads be served on the ironSource LivePlay mediation?
The reason I am asking is because I learned how to set up unity mediation and I am comfortable using that long term, switching to LivePlay means to spending a week (usually frustrating. This is due to custom in game mechanics.) to set up the process again.

willow verge
tired lily
willow verge
#

Thank you! I don't have an armv7 device so will set up an emulator then

past plover
#

do you need to own an iphone if you want to release a game on ios ?

neon thicket
#

Would be odd to release without being able to test your own game though.

past plover
#

i know but macs and iphones aint cheap

neon thicket
#

Yep

sweet timber
#

Hey guys I just release my first app on the Android Store, but the login with Google Game Service and relative achievements doesn't work when downloading the app.
Instead they works while building directly the same app bundle on my phone. Any idea of why this is happening?
Just getting really confused about it.

tired lily
#

disclaimer: I don't use google game service, but you might be missing the sha fingerprint of your game from whatever configuration you're using. Google signs your bundle with a private key so it won't be the same as your debug fingerprint

void mantle
#

Hey guys! Unity is stuck on resolving mobile dependencies while labeling libraries

#

I can't find a solution for this

#

I'm also getting this error message when trying to build to android:

#

Stopped polling job due to exception: System.NullReferenceException: Object reference not set to an instance of an object
at GooglePlayServices.UnityCompat.VersionFromAndroidSDKVersionsEnum (System.String enumName, System.String fallbackPrefKey, System.Int32 fallbackValue) [0x00001] in <48abf529805a49c69e88ffb3f8b573e9>:0
at GooglePlayServices.UnityCompat.GetAndroidTargetSDKVersion () [0x00036] in <48abf529805a49c69e88ffb3f8b573e9>:0
at GooglePlayServices.PlayServicesResolver.CanEnableJetifierOrPromptUser (System.String titlePrefix) [0x000b0] in <48abf529805a49c69e88ffb3f8b573e9>:0
at GooglePlayServices.GradleResolver+<>c__DisplayClass7_0.<GradleResolution>b__5 (System.Collections.Generic.HashSet`1[T] unusedUnlabeled) [0x00026] in <48abf529805a49c69e88ffb3f8b573e9>:0
at GooglePlayServices.PlayServicesResolver+<>c__DisplayClass118_0.<LabelAssets>b__0 () [0x001e1] in <48abf529805a49c69e88ffb3f8b573e9>:0
at Google.RunOnMainThread.ExecutePollingJobs () [0x00052] in <ac8e755fbc27434ebdaf117e2c7041d9>:0
UnityEngine.Debug:LogError (object)
Google.RunOnMainThread:ExecutePollingJobs ()
Google.RunOnMainThread/<>c:<ExecuteAll>b__24_0 ()
Google.RunOnMainThread:RunAction (System.Action)
Google.RunOnMainThread:ExecuteAll ()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

chilly canyon
#

Try remove play services then add again

#

You press on force resolve?

vale canopy
#

Hello i have an issue with AdMob,for some reason after compiling the LoadAd() Function is changed to loadAd(), i get a logact error "java.lang.NoSuchMethodError: no non-static method with name='loadAd' signature='(Ljava/lang/String;Lcom.google.android.gms.ads.AdRequest;)V' in class Ljava.lang.Object;"

tired lily
#

check your proguard rules

glossy sluice
#

hey, this has probably been asked a few times im guessing. how do i apply behavior to mobile (specifically android) back return arrow w/ the new input system?

chilly canyon
void mantle
#

nevermind I got force resolve to work

#

lets see if build is also working now

chilly canyon
#

Go unity preferences, and uncheck Gradle, then again check

void mantle
#

that's what I just did to fix force resolve lol

#

omg the build finally worked thank you!

chilly canyon
void mantle
#

huh?

#

wdym?

void mantle
#

well okay yeah

chilly canyon
#

Thanks

void mantle
#

I have 2 years of game dev experience but not really much with android games but I'll try

#

in my opinion you should try to monetize a game only once you have like a bunch of game dev experience

#

Alright

#

my review:

chilly canyon
void mantle
#

yeah but I meant in-game purchases with that

#

and that doesn't make your game more popular

chilly canyon
#

Oh, i understand

#

You mean this

void mantle
#

++ nice main menu music, fitting to the feel of the game (you should also put it in the actual game)
++ nice and simple graphics, not distracting

  • nice UI and font choice (except for the icons in the main menu; they look really blurry and when clicking on the one in the top left I didn't know it would take me to play services)
    ++ really nice transitions, animations & effects
  • since this game mechanic already exists multiple times, maybe add a twist to the game mechanics?
  • the settings look pretty complicated (make toggles instead of buttons)
  • for the quit button, make the popup also go down again once you cancelled quitting (looks weird moving all through the whole screen)
    -- too easy, add a difficulty curve (smaller spike distances over time etc.) => I was easily able to get a highscore of 42 and could theoretically get infinite
    -- add more game elements for more interesting scenarios
chilly canyon
#

thanks for the feedback, it will help me improve my game

void mantle
#

for the game page:
-- music doesn't fit at all

  • thumbnail looks pretty pixelated and not interesting at all (add maybe bloom and color correction etc.)
  • don't die so early in the trailer, just make fast transitions to other gameplay-situations which would look way more interesting
  • show off more (not only gameplay, but also main menu etc.)
  • for the game icon it's the same as for the trailer thumbnail; make it more interesting
  • screenshots are good selected but there are too many and none shows the beautiful transition from the main menu to the game or even the main menu itself
#

all in all, really good and juicy feel of the game, but there's still much to improve in the backstage

glossy sluice
#

I want to sell my imac to get a MacBook pro but how do i shift my files without losing it?

chilly canyon
#

sorry, this is not a chat to discuss the sale, but you can throw them on Google Drive

#

@glossy sluice

neon thicket
chilly canyon
chilly canyon
#

Try resolve google services, if you have this

knotty cedar
#

Please how do I move the inputfield ui above TouchKeyboard for Mobile?

fringe sparrow
#

When trying to have a banner ad. Do we use the services window and use the Unity packages, or do we have to use IronSource package?

toxic oriole
#

Where to get channel id for Mobile Notifications?

brazen birch
royal merlin
#

Hi guys, I'm trying to implement the admob ads on unity but to no avail, on unity editor will work but on android device the game crashes as soon as I click on the icon.
I also followed this tutorial but nothing:
https://www.youtube.com/watch?v=KKL3k-Uk5JU&t=67s

Unity version: 2021.3.2f1
ADMob version: v7..1.0

Somebody can help me with this?

glossy sluice
chilly canyon
#

Yes

brazen birch
#

Or through adb

fringe sparrow
#

Hey guys, im trying to use Unity ads and so Im following the Unity documentation, to install "Advertisement Legacy" and "Advertisement with Mediation". I copy pasted the script "Initializing the SDK in Unity" script but I am getting some errors when trying to access certain things as seen in this screen shot

#

I have been searching online and can't find what to do as various yt videos are out of date

#

Using Unity 2021.3.11f1 and Ads package 4.4.1

#

Alright I think I figured it out. If anyone runs into this issue this is what I found out.

If you try to make the script in a folder and are adding an assembly definition in it. Then these scripts can not see, the Unity Ads package since they are in another assembly. So I just created the same script outside that folder and fixed.

fervent viper
#

Hello I'm having problems with the Xcode build of my game, the error says "Duplicated Symbols for arquitecture ARM64" I'm been stuck for a few days now I don't know what to do can somebody help me please?

fringe sparrow
#

Also if you want to add this file to where your other files are with the assembly definition then you just have to add this reference on this spot of the assembly definition

fervent viper
royal merlin
fallen compass
#

adb will still give logs whan an app crashes whilst launching

indigo condor
#

why when I export my project to android studio seems to set the apk for armeabi arquitecture? where is that setting?

#

this is what appears when i try to run the project on the emulator

#

I'd apreciate any help im new on android till now i just did ios builds

silent pecan
#

I placed an ad in my game, but when the ad opens, the game's music continues to play in the background.
Is this happening because I'm in test mode or do I need to write some other code to fix this problem?

sleek eagle
sleek eagle
silent pecan
#

thank you i got it done in a different way

frail obsidian
#

guys I tried to connect my smartphone to Unity with usb,
hoping Unity will recognize my smartphone,
but pity it won't succeed, it tried to fetch but there is no such
brand shows up *I'm with samsung by now

#

also is there any particular configuration to build an .apk for android 11 ?
since my android say 'won't install the apk'
I just download the .apk manually from directory

sleek eagle
#

Is your phone in dev mode with usb debugging on? @frail obsidian

#

Then you can see your phone in 'run device'

#

Otherwise show the error

frail obsidian
# sleek eagle Is your phone in dev mode with usb debugging on? <@938278175362920458>

now I switch to manual method
build the .apk manually and install it manually
new situation occur, the .apk is crashing for some reason ..

is there any particular configuration for android 11 ?
I'm making some AR with Vuforia,
and surprisingly the results really big it's around 70mb
for just the image tracking and animated cube
🤷‍♂️

#

this is my set up and still stopping

#

it works on runtime already

waxen blaze
#

what is usually the best aspect ratio/resolution for me to make my game at?

brazen birch
brazen birch
#

It's common for me to use two different UI stacks for widescreen and portrait though

#

Just to get a more comfortable layout

deft lagoon
#

I might be in the wrong Channel here(Sorry if I am), but is it possible to set up a Repeated Local Notification but is repeated a limited times only?
ex:
for 7 days Notify Everyday at 12 noon.

indigo condor
#

also, what if you want to debug on device?

sleek eagle
indigo condor
#

can i connect Rider?

sleek eagle
#

Not sure

quartz lava
#

Hi where i can learn about unity mobile third person player controller (move , look around , jump and fire)

latent lantern
#

Hi! Oh boy I am frustrated today. I switched on Symlink Sources on a totally working build to see if it might speed up iteration time. Well it failed miserably as expected, so I switched back off Symlink Sources. However, ever since that moment of great hubris when I ticked that checkbox, my game fails to build! It has this opaque error about an index being out of range:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at iOSPlayerBuildProgram.SetupTargetForInludedFile(IncludedFile file)
   at iOSPlayerBuildProgram.AddProjectFile(NPath srcPath, NPath dstPath, Boolean addToEmbeddedBinaries, String targetGUID, Boolean shouldAddToProject, SymlinkType symlinkType)
   at iOSPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupCopyPlugins() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 537
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 174
   at iOSPlayerBuildProgram.SetupPlayerBuild()
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 168
   at PlayerBuildProgramTypeWrapper.Run(String[] args)

And so yeah, I am now completely dead in the water, all cuz I had the arrogance to momentarily tick a checkbox.

#

I would file a bug but the last one I filed two months ago hasn't seen any movement so I'm not willing to waste my time with Unity's bug reporting system. They don't respect my time, so I don't respect theirs.

latent lantern
#

And now, with the typical advice of Just delete your Library folder and restart, loser The project won't even open.

fringe sparrow
#

and that is why we use source control

brazen birch
#

You also have to keep in mind: They don't respect my time, so I don't respect theirs. the problem with this statement is it neglects the fact you are stuck with an issue, they are not. So really it only hurts yourself.

#

Not sure if you are just wanting to complain or actually seeking advice.

#

But if you read that stack trace, it sounds like it failed to copy a plugin for iOS. Which means either a plugin inside a package or a /plugin in your project isn't copying to the build folder and mostly likely needs to be toggled (or the /obj and /temp folders are causing a problem). A few possibilities there, but I don't really like to troubleshoot Apple stuff, and again not sure you really want help anyway ... So good luck in your journey.

brazen birch
#

It looks like you may be able to cancel it. But I suspect you need to code it at app run time, which only helps if they launch the app

#

You probably could create a manual plugin for it. But I'm not seeing an easy way

#

You could set 7 manually instead of a repeat though

notification.Title = "Your Title";
notification.Text = "Your Text";
notification.FireTime = System.DateTime.Now.AddMinutes(1);

AndroidNotificationCenter.SendNotification(notification, "channel_id");```
#

Basically loop that 7 times and increment the day for each one.

plush crest
#

Hey everyone, I'm trying to create a mobile game where there's an image gallery of around 500 images. each image is around 1mb in size and so i can't load them all in at once because that would use a lot of memory.

#

So currently, i've placed all the images in the StreamingAssets folder and then at runtime loading it into a RawImage component. This works well but I was wondering if there is a more efficient way of loading this? I'll also use this same method for loading audioclips for each image. Hope someone can point me in the right direction!

kind zephyr
#

Guys i want to ask, i've a ui when i start in editor it's normal but when i build and run on mobile it's messed up

heavy wraith
#

Running unity 2022.1.23f1 on Windows I'm noticing some times my iOS target builds produce a Il2CppOutputProject in the Output folder, and some times they do not. Is this related to some option I have selected?

heavy wraith
#

I've read up in il2cpp a bunch of times but don't see how/when/why it would apply to an iOS compilation.

#

It sounded like when you want JiT for a platform

sleek eagle
#

The default is mono, but il2cpp is faster.
The new unity versions got incremental builds, which introduces the folder as a cache

heavy wraith
#

How would I toggle that within Unity? I've seen very, very few iOS build options.

sleek eagle
#

Go to project settings - Player settings - ios tab - Others

#

There the architecture can be il2cpp or mono

#

It's about how the game will be compiled

heavy wraith
#

Let me take a look, I'd find it crazy if they randomly were changing on me.

#

Hmm, looks like IL2CPP is greyed out/unselectable. Perhaps tied to something different in there. That folder isn't appearing anymore which I found strange.

sleek eagle
#

Screenshot?

heavy wraith
sleek eagle
#

Ahhh ios builds are locked to il2cpp because of apple requirements

#

Then I'm unsure why it only happens with some projects

heavy wraith
#

Yeah, so strange.

#

When the folder is present I get a ton of IL2CPP build errors

#

The folders inside aren't named correctly.

#

Mac_x64 instead of Mac_x86_64 for example IIRC

#

Just really odd stuff.

#

I've done a full reinstall a few times working my way back until I'm on the version I'm on trying to get it stable for more than a few weeks. I should probably just bite the bullet and have Unity on my Mac but I prefer to develop on Windows and just move over the iOS Xcode project directly.

#

Ahh well, thanks for the chat though!

wispy bronze
#

Some parts of my textures appear to be pink only in the build. What could be causing this?

sleek eagle
#

Are you using urp or hdrp? @wispy bronze

If so, check the materials that appear pink

nova imp
#

Android Resolver resolves dependencies.
My question is how I can add some constraints and exclude some dependencies
For example market specific dependencies (Native, GooglePlay, etc.).
For each market, it should only include that market dependencies and exclude others
I have added asmdef files with preprocessor for each market. It is OK for market folders but android resolver generates aar files in Plugins/Android folder

wispy bronze
#

I am using URP. The shaders I use are the Baked Shader for static objects and Simple Lit for dynamic objects. The problem only occurs with the static objects. Please notice! Whole objects aren't pink, only parts of them, even though they are using one shader.

sleek eagle
lost zodiac
#

Hi everyone, can someone tell me what the best and most common ways are to optimize my game (I am using URP) for a mobile device .. I have never done anyrthing like that before, so please give me topics/videos and anything else that you can think off.. thank you

sleek eagle
#

These are the easiest wins: https://youtu.be/7S6QQKtvNo8

Other than that it really depends on the content you make. Check out guides on the profiler and profile with a development build on your phone

Unity has so many settings that it might be hard to know where to start. In this guide I will show you to improve your CPU performance a LOT, by just changing a few settings. No code or knowledge is required in order to follow this guide!
This guide applies in the Built-in Render Pipeline, Universal Render Pipeline (URP), High Dynamic Render Pip...

▶ Play video
rugged bough
#

When you guys save player progress to the cloud, what do you use? Locally i save a binary file, but google play services does not allow binary files?

glossy sluice
#

Hi, i can export my project but not even build but why? Im using imac

stark quartz
#

Hi! i'm building a game for Android. I installed the mediation package, but I had issues when building. Then I read this:


The Advertisement with Mediation package contains Unity’s own ad mediation solution, which is no longer being enhanced. You may still download and use until further notice, but we recommend using Unity LevelPlay for longer term support and improvements.``` 

What is the best way to implement ads right now and if it's not mediation, how can I remove mediation ?
analog plover
#

The notice seems quite clear

rugged ivy
#

Is there a way to get Unity's current focused View in android, for using as a reference in a .java plugin?

stark quartz
#

I'm trying to use ironSource and LevelPlay ads, but I can't manage to get it work. I get an "Unsupported platform" message in the editor, is it normal ? Also, should I enable the Ads in the services panel ?

fringe sparrow
#

do we have to use LevelPlay instead of the default packages that get generated when using Unity editor

#

Im finding that I can not build a aab, but when I remove "Advertisement Legacy", unity allows me to make an aab, which to me means that the issue is with that package

spark zodiac
#

Is there anyone who have used IAP before in unity? If yes, then can anyone tell me how to begin with IAP? Right now i heard that to include IAP in my project i need my game to be published in any of the store(google playstore, app store etc) first. I haven't published my game yet so can i still use IAP or do i need to publish it first?

tired lily
stark quartz
#

I managed to get it work, thanks!

#

I'm not sure of the best way to load and show ads though

#

Is there a way to check if an ad is loaded ? I made an int that increases when onInterstitialAdReadyEvent is triggered

#

I also made this, but I don't want to have it load many ads in the background:

static void OnInterstitialAdLoadFailedEvent(IronSourceError ironSourceError)
    {
        instance.Invoke("LoadInterstitial", 30); // Load again in 30 seconds
    }```
What are the best practices ?
tired lily
#

I use a different mediator, but usually: start loading ads as soon as you can and use an exponential backoff in the case of an ad load failure

stark quartz
#

What's an exponential backoff ?

tidal lily
#

guys, we are trying to make a game based on writing the letters on the screen on mobile. We decided to create our own keybord input and take the words over there. But we dont know how to do it. Is there any different ways to make this system? Or who can help us?

latent lantern
#

Is there some way to look at the code of this file?
at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupCopyPlugins() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 537

I assume not because it appears to be in some kind of virtual directory

glossy sluice
#

Hello i want to change the name of my url folder on my imac. Do i will lose my projects? Every path starts with user/pascal/… and i want to change to user/pas/

latent lantern
glossy sluice
glossy sluice
#

Another question comes up. Who else knows the answer?

#

Thanks in advance

calm wadi
#

heyo people

#

has anyone here ever published a app to google play store

sleek eagle
calm wadi
#

I need help getting a build with all the correct setup

#

64 bit ect

sleek eagle
#

Make sure the android module + 2 submodules are installed in unity hub

In player settings - other enable il2cpp and enable 64 bit

sleek eagle
#

It's for quest 2, but that also runs android

calm wadi
#

i did all that and it just kinda broke my unity

sleek eagle
glossy sluice
glossy sluice
calm wadi
fringe sparrow
#

has anyone used IronSource mediation package and sent IronSource an email with their bank info?

last stump
#

Hey I cant build a apk please help! I get many errors but I think the important one is this > Configure project :launcher WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8

fringe sparrow
#

has anyone sent bank info to IronSource to get their account approved to use LevelPlay?

glossy sluice
fringe sparrow
#

when you change scenes it creates the stuff from the next scene and destroyed stuff from the scene you are no longer in

#

the bigger the second scene is, the longer the delay that you might get

#

Not sure why for you its 2 seconds exactly, but thats what happens when you change scenes

sleek eagle
# calm wadi alot

If you aren't specific I am not helping. If I tell you my project broke, how are you supposed to know what is going on

calm wadi
#

@sleek eagle sorry i was at collage

#

very stressful day

restive zinc
#

I've heard in a Unity profiling talk that mobile devices vsync is forced on by hardware. Is this still true?

analog plover
#

Mobile hardware hasn't changed in 2 years in that regard, no

rotund knot
restive zinc
#

Yeah same. I can't find any info on the topic

simple berry
#

Trouble Building on Xcode for IOS

keen crane
sleek eagle
#

Remote is streaming, so not running on the actual device.
Don't think anyone can give more support then check your wifi or usb

The solution: build natively to test performance on mobile

keen crane
#

Thanks, I’m fine with the low fps as long as it’s not the final product

warm mural
#

Hii,
I'm mobile developer and my project has a 3d viewer made with unity. I'm interested in cross-platform.
Is there any multiplatform sdk/framework (Flutter, Xamarin, React Native, Ionic... ) that can integrate the viewer seamlessly ?

The app would have the viewer embedded on it, it's not just the viewer, also has other interfaces.

sonic otter
#

Uh React and Angular have plugins to embed Unity projects inside webgl builds

north charm
#

Hey i wanted to make my first android game switched to Android now my file is broken + my pc shutdown does anyone know why this happens?

#

Cant even open the game anymore :,((

#

For whatever reason when i start and chose windows as the current platform everything is normal

sonic otter
#

It bluescreens when you run emulated android?

north charm
#

maybe its my hardware tho i had that a problem a few times in the past

#

but its happening everytime when i wanna swap to android in unity

warm mural
sacred creek
north charm
sacred creek
vague iris
#

hey guys, I am trying to port an iOS Project to TVOs. I just got the latest Apple TV but unfortunately it lacks an USB-C port. So how are we supposed to test our games without being able to connect it to our dev machines?

fallen compass
#

Probably the only way now is to use Testflight

vague iris
#

yes I have the ethernetport version.

restive zinc
#

Is there any alternatives to bloom in URP? The bloom in the volume profile so expensive for mobile

ember jetty
vague pilot
#

How would I check if the player is in Landscape or Portrait mode in my game I see the auto rotation in unity but it doesn't seem to scale correctly? (Yes I do anchor everything)

crisp plaza
#

Hey guys, can you please give me your point of view on my game : https://youtube.com/shorts/DK73xFZ4FlM?feature=share

#

Maybe some improvements ideas ?

#

I want to make it level based. Your goal is to control the rocket and take a package from Point A to Point B.

I thought about adding a timer for Speedrunners.
I'll surely add multiple Rocket Skins.
Also thiking about adding rockets / thrusters with different caracteristics (More Thrust, More stable, ...)
That's pretty much it 🙂

void drift
#

i want the user to select a profile photo. How can i have access to the device storage? i spent a few hours and found little to no helpfull information on how to achieve this 😦 Can someone give me a hint?

tired lily
#

assuming you're talking android, it would probably be best to create an implicit intent filter that has the user choose a photo, and get that data back

brazen birch
long sorrel
#

does anyone know how to put mobile keyboard input with field text

#

I looked in unity documentation and I still don't know

fringe sparrow
#

when you are on the mobile build, and you click the field, the keyboard should pop up

twin garden
#

can anyone see why this would not be working

#

is there an updated way to do it with input actions or something?

sleek eagle
twin garden
#

I have it set to both. But this code is not doing anything

analog plover
#

Put a Debug.Log inside and outside every if block so that you know which part fails

fair ermine
#

I have to squueeze every fps possible out of a simple app just shows a single unlit texture on android, what do I turn off?

twin garden
#

I can't see the console on mobile

fair ermine
#

any way to throttle the framerate depending on the soc temperature?

sleek eagle
sleek eagle
# fair ermine I have to squueeze every fps possible out of a simple app just shows a single un...

A lot
Maybe this can already help: https://youtu.be/7S6QQKtvNo8

Unity has so many settings that it might be hard to know where to start. In this guide I will show you to improve your CPU performance a LOT, by just changing a few settings. No code or knowledge is required in order to follow this guide!
This guide applies in the Built-in Render Pipeline, Universal Render Pipeline (URP), High Dynamic Render Pip...

▶ Play video
#

Other than that not many people can help you without project access or specific questions

fair ermine
# sleek eagle A lot Maybe this can already help: https://youtu.be/7S6QQKtvNo8

Thank you that hopefully helps, I was using mono,
To be more specific I'm using an S21 FE to build a video player for AR Glasses. The SDK uses unity and there seems to be some thermal throttling behaviour going on with this samsung, where at around soc temp 39-40, all unity performance, in AR or not comes to a crawl, and this includes even a minimal scene with no objects, 1 camera, and no light source. I think the phone has a design issue, I'm not in the USA so the phone was provided with the exynos 2100 cpu instead of the more reliable cooler running snapdragon. So americans I'm asking for help have no Idea what I'm talking about mostly

sleek eagle
fair ermine
glossy sluice
warm mural
queen lily
#

Hello recently I have been faced with this error. But the cause is extremely unusual and I can't find anything online even openai.chat came up empty on this one

But for this error to appear all I have to do is rename my company in the settings. So basically when ever the packname is changed from com.defaultcompany.<appname>

First thoughts would ofc be bad format package name or an already used package name.

But nope I have tried over 20 combinations and not even one letter from defaultCompany can be changed without this error

I can make it build with custom packname but only when built in ic2? Instead of mono ( I may not have the right names but you should know what I mean) with arm64x

So this results in successful build but the apk can't be installed on a android as it gives error package name already in use. ( Doesn't matter what package name I use)

But simply renaming it back to com.defaultcompany.<game> it works fine.

I backedup my source file and then I took all my assets back to the last successful build. But same issue is present.

So I'm starting to believe it is a bug or a error in a installed/preinstalled package.

Even tried manually renaming all com.defaultcomany.<game>

I'm using 2021.3.15, and honestly I'm out of troubleshooting ideas.

And fyi if post the full logs but honestly the logs are even more useless and the build failure popup has most details. In the log

I also tried openai.chat to diagnosis didn't help.

( Although I will add I'd advise more people use openais new chat bot. It is actually extremely good at finding bugs from logs. And also for general information. I wouldn't trust it 100% but in the two days I used it it's actually helped me diagnosis alot of problems )

#

Oh I'll also add this issue is there even on new projects, even after a complete reinstall of engine and hub

twin garden
twin garden
#

so this works now but it's too fast

#

i want the back button to open the menu and then if its pushed again it will exit the game

#

i think it's staying down for a sec because the way i'm detecting if the 2nd time it's pushed is if the menu is active

#

oh do i just flip the If statements lol

analog plover
#

have you also never used else if

edgy leaf
#

Hey, guys
Does anyone know the best way to save data when Android app is closed?
I'm saving data to Google Play Games. OnDestroy and OnApplicationQuit don't workÏ and OnApplicationPause is not reliable

analog plover
#

Those are the methods that can be used. If someone force closes the app then you can't do anything because the app isn't running anymore

edgy leaf
#

The thing is the method that is in OnApplicationQuit has a callback method, maybe that's the problem?

analog plover
#

You have a limited time to do anything in OnApplicationQuit

edgy leaf
analog plover
#

OnApplicationQuit

#

there is no other way

edgy leaf
#

I doubt it's the best way, but how long do I have in OnApplicationQuit then?

analog plover
#

Depends on the OS

#

might want to use OnApplicationFocus event instead

edgy leaf
halcyon stump
#

Is anyone else having an issue with Unity finding their app-ads.txt file? I'm using a squarespace website so I can't put the file in the root directory meaning I have to use a redirect. This was working until sometime in the past month. Now unity says they don't allow redirects for the app-ads link.

rotund knot
pure zenith
#

Can someone here help with build errors?

pure zenith
#

I have been asking the actual question else where with no response

pure zenith
#

I can't find that config file

sleek eagle
#

As it says, check the console

#

And put the full errors here

pure zenith
#

Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preBuild UP-TO-DATE
Task :launcher:preReleaseBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResValues UP-TO-DATE
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResources UP-TO-DATE
Task :unityLibrary:generateReleaseResValues UP-TO-DATE
Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
Task :launcher:extractDeepLinksRelease UP-TO-DATE
Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseResources UP-TO-DATE
Task :unityLibrary:packageReleaseResources UP-TO-DATE
Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :launcher:mergeReleaseResources FAILED
Task :unityLibrary:generateReleaseBuildConfig
Task :unityLibrary:processReleaseManifest
10 actionable tasks: 3 executed, 7 up-to-date

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

#

This all started because banner ads would not show up on my phone, but they do in the editor

#

I updated the ad package and now it won't build

#

I also have a ton of "Mapping new ns" messages

sleek eagle
#

Which unity version?
Do you use custom android manifest files or others?
Did you change any settings regarding android?
Does it happen in a blank project?

pure zenith
#

Unity 2020.3.42f1, and I have changed the SDK to 31

#

I have not tried it in a blank project

#

This was the error I was getting when the app would build and run on my phone

#

I have no idea what broke

#

I have every gradle file open and I do not see "android.useAndroidX"

#

I have resolved my build issue

#

Some how the "Use custom gradle template" was checked

#

But now I am back to the point of the ads not loading on my phone

#

After noticing there was an update to 4.4.1, I tried that version and I got the same gradle build error

#

Seems that any time I change the package I get the gradle build error. I just tried changing it back to 4.3.0 and the error showed up again

pure zenith
#

"> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8"

#

I have tried removing android.enableR8=false from the file, but it keeps adding back when I try building and running

#

So I deleted resolved dependencies and that has fixed my problem

#

Well now I get this error "Warn UnityAds com.unity3d.services.core.connectivity.ConnectivityMonitor.initConnectionStatus() (line:109) :: Unity Ads was not able to get current network type due to missing permission"

#

Tried following this, but I don't have a "build settings" in player options

pure zenith
#

I found the setting, but it's still not working

pure zenith
#

Found something that said to check the manifest. It appears that the proper permissions are in there. Yet it still says the proper permission don't exist

coral fable
#

I cant figure out why DoRenderLoop_Internal() is taking up so much time

#

even on a very basic scene, i am getting subpar performance

sleek eagle
#

You can expand it. Probably something graphics related or a GPU bottleneck @coral fable

limber ruin
#

HI,
I have one query. I build one APK from Unity and that size is more than 5.5 GB so I used OBB option. but OBB max size is 4 GB. so how can I Build for Quest 2?

fallen compass
#

look at the editor log after doing a build, see why it's so big.. remove/ optimise things

sleek eagle
#

@limber ruin see above. I'd say try to get that size down.
If not possible, try splitting into multiple obb files maybe

limber ruin
lime violet
#

Im trying to build an android app bundle but keep getting these errors.

#

it always fails on the gradle build

analog plover
#

Read/show the third error

lime violet
#

i think this is the most important part

#

its just warnings after

#

Unity version is 2021.1.23f1 btw

quartz kernel
#

I've seen some people say that updating the SDK when prompted starts working if they run Unity as admin

lime violet
#

hmm ran it as administrator and tried the left "Update Android SDK" option but still getting this

#

the errors i sent before came from the "use highest installed" option btw

quartz kernel
#

Right so try following the video

lime violet
#

thats a different error though but executing that command in cmd says it doesnt recognize the command

#

he's also not building an app bundle

quartz kernel
#

Are you building for play store?

lime violet
#

yeah,

#

with the google play console

quartz kernel
#

Then you're gonna need API 31 not just 29

lime violet
#

i tried it with 32

#

but 31 or 32 gives same message

quartz kernel
#

I'm trying to find the link to what got it working fo rme yesterday

lime violet
#

you had the same thing?

quartz kernel
#

Yep haha

#

So save this as SDKD.cmd, insert your unity version, and run it

set JAVA_HOME=C:\Program Files\Unity\Hub\Editor\2020.3.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\
set ANDROID_HOME=C:\Program Files\Unity\Hub\Editor\2020.3.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\
cd %ANDROID_HOME%SDK\tools\bin\
echo.> %USERPROFILE%\.android\repositories.cfg

cmd /C sdkmanager --update
cmd /C sdkmanager "platform-tools" "platforms;android-31"
cmd /C sdkmanager "platform-tools" "platforms;android-32"
cmd /C sdkmanager "platform-tools" "platforms;android-33"
lime violet
#

ehh not the best with cmd stuff, how do you make/run the SDKD.cmd

quartz kernel
#

I just double clicked it

lime violet
#

but how'd you make the sdkd.cmd?

lime violet
#

it doesnt run in cmd for me, just opens in notepad

quartz kernel
#

Right click in explorer > New > Text file > Set the name to SDK.cmd

#

You can right click and run the file too

lime violet
#

mm doesnt do it for me, just keeps opening in notepad. I cant choose cmd when saving, only .txt

quartz kernel
lime violet
#

still getting this after running commands

lime violet
#

but it does know all these

trail swift
#

Does anyone know where / and how to check performance memory guides on mobile?

#

for example this is my snapshot

#

is 112 mb too much?

rugged bough
#

I noticed, that when i look down on my terrain, i have 50 fps, and if i look just above it i get lots more even though the trees etc is in view. Seems that the terrrain itself consumes alot fps. I use Gaia Terrain with the low poly setting

quartz kernel
crystal coral
#

does anybody have a background on using AdMob with mediation? I dont seem to see Mediation anywhere in my package manager...

rugged bough
#

My problem is not the amount of tris im sure, its something else with the terrain

#

Microsplat has helped me before but it messed with my textures

#

Ill research it

sleek eagle
#

Not sure the exact details of terrain, but I know those are usually the issues on mobile and I know terrain on mobile sucks

sleek eagle
rugged bough
#

Not even looking at a horizon of terrain hehe

sleek eagle
#

Maybe look for terrain to mesh tools online and LOD the meshes?

#

Can be a pain for the trees etc if you have them painted onto the terrain tho. Not sure if there are any tools for that yet

rugged bough
#

Lod the terrain mesh?

#

Right now my terrain is one piece

#

🙂

sleek eagle
#

Terrain already has some sort of LOD system, but if you bake it into a mesh it won't since, well, it's a mesh. You can cut up the mesh and then LOD it to get some performance back of the increase in tris

rugged bough
#

My game runs okay at 55-60fps but i notice sometimes 50 etc and i think that terrain is whats stopping me from going 60+

#

Ah i see

#

Like a grid yeah

sleek eagle
#

Yepyep

rugged bough
#

I'll see what i can do, i know that microsplat gives terrain better preformance

#

But again, thought i could use without

#

Since i have the Gaia terrain asset

#

Thanks for inputs mate

sleek eagle
#

No problem! Good luck

ember bear
#

After updating from 2022.1 to 2022.2, I can no longer archive my build for iOS. Any ideas?

lime violet
#

thanks for your help yesterday

quartz kernel
#

Fair enough, I didn't have the option to upgrade so I needed to fix my existing version. Great that you got it working :)

lilac herald
#

@lime violet i see you have the same issue as me, do you know how to fix this?

brazen birch
#

All that says is Gradle failed to build the project. You need to look at the log item to determine why.

lilac herald
brazen birch
#

Keep going through the errors, you'll find one with specifics

lilac herald
#

i've tried everything

#

doesn't work

#

i've tried reinstalling unity

#

upgrading gradle

#

changing build settings

#

nothing works

#

nothing

#

i get different errors

#

not always this one

brazen birch
#

We haven't found the error yet, it's in one of the logs

lilac herald
#

and who even understands what this error says

#

which one this?

brazen birch
#

I don't think you understand what it is telling you. Unity is only showing that the building using Gradle failed. The reason it failed will be embedded in one of those error logs

lilac herald
brazen birch
#

Unity doesn't really handle Gradle that well, and can't understand the errors from it very easily. So you need to look at the messages and find the one that shows you the error messages returned from Gradle

lilac herald
#

this one?

brazen birch
brazen birch
lilac herald
#

ok

#

now what

brazen birch
# lilac herald now what

This helps - it shows some missing build tools in Gradle...

com.android.tools.build:gradle.6.1.1

You need to install those. If you have a vanilla unity / built in Gradle install, it should self resolve that issue. But if you messed with the Gradle install, now you'll need to go into android studio and install the missing sdk manually

lilac herald
brazen birch
lilac herald
brazen birch
# lilac herald i have gradle installed through unity

The good news is now that we have the error, we know why the builds are failing.

https://stackoverflow.com/questions/72922400/gradle-build-failed-in-unityv-2021-2-14-gradle-6-1-1

And other folks have the same error.

There are a handful of ways to solve it. Manually install the missing SDK version to Gradle. Use a custom Android studio build with the right Gradle installed. Or use a different version of unity that should have a fresh Gradle without the issue.