[유니티 공부] 유니티 구글스토어에서 받으면 팅김 현상 아니왜!!

반응형

구글플레이스토어 팅김현상 아니왜!!

APK파일을 빌드하여 녹스플레이어나 안드로이드 애뮬레이터 같은 PC에서 구동했을때는 잘되는데 구글플레이콘솔에 프로덕션 업로드하여 다운로드 받으면 팅김현상이 발생했습니다.

 

열심히 구글링하여 찾아내서 해결책을 찾았습니다.

 

유니티 입문 완전 쌩초보인 저와 같은 사람이 있을까봐 글로 기록해둡니다.

 

Edit > Project Settings > Publishing Settings

Custom Launcher Manifest 를 체크해 주면 Assets/Plugins/Android/LanuncherManifest.xml 파일이 생성됩니다.

 

그럼 해당 폴더로 이동하여 LanuncherManifest.xml 파일을 열어줍니다.

 

<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
    xmlns:tools="http://schemas.android.com/tools"
    android:installLocation="preferExternal">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"/>

    <application android:extractNativeLibs="true"
                 android:label="@string/app_name"
                 android:icon="@mipmap/app_icon"/>
</manifest>

파일을 열면 위와 같이 나오는데 <application /> 부분에 아래의 코드를 추가해줍니다.

 

android:allowBackup="false"

android:fullBackupContent="false"
tools:replace="android:allowBackup"

 

<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
    xmlns:tools="http://schemas.android.com/tools"
    android:installLocation="preferExternal">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"/>

    <application android:extractNativeLibs="true"
                 android:label="@string/app_name"
                 android:icon="@mipmap/app_icon"
                 android:allowBackup="false"
                 android:fullBackupContent="false"
                 tools:replace="android:allowBackup"/>
</manifest>

이렇게하고 다시 빌드하고 업데이트 진행후 확인해보니 팅김현상은 사라졌네요.

728x90
반응형

공지사항

댓글