공유하기 관련 Compose 에러

package com.DefaultCompany.KakaoTest

import android.app.Application
import com.kakao.sdk.common.KakaoSdk

class GlobalApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        KakaoSdk.init(this,"e07f4a5a3e806afcfed2788cd2073bf2")
    }
}
allprojects {
    buildscript {
        repositories {**ARTIFACTORYREPOSITORY**
            google()
            jcenter()
            maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/'}

        }

        dependencies {
            // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
            // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
            // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
            // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
            classpath 'com.android.tools.build:gradle:4.0.1'
            **BUILD_SCRIPT_DEPS**
        }
    }

    repositories {**ARTIFACTORYREPOSITORY**
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
        maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/'}

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

package com.DefaultCompany.KakaoTest


import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import com.kakao.sdk.share.ShareClient
import com.kakao.sdk.template.model.Button
import com.kakao.sdk.template.model.Content
import com.kakao.sdk.template.model.FeedTemplate
import com.kakao.sdk.template.model.ItemContent
import com.kakao.sdk.template.model.ItemInfo
import com.kakao.sdk.template.model.Link
import com.kakao.sdk.template.model.Social

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        if (ShareClient.instance.isKakaoTalkSharingAvailable(this)) {
            val defaultFeed = FeedTemplate(
                content = Content(
                    title = "오늘의 디저트",
                    description = "#케익 #딸기 #삼평동 #카페 #분위기 #소개팅",
                    imageUrl = "https://mud-kage.kakao.com/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png",
                    link = Link(
                        webUrl = "https://developers.kakao.com",
                        mobileWebUrl = "https://developers.kakao.com"
                    )
                ),
                itemContent = ItemContent(
                    profileText = "Kakao",
                    profileImageUrl = "https://mud-kage.kakao.com/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png",
                    titleImageUrl = "https://mud-kage.kakao.com/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png",
                    titleImageText = "Cheese cake",
                    titleImageCategory = "Cake",
                    items = listOf(
                        ItemInfo(item = "cake1", itemOp = "1000원"),
                        ItemInfo(item = "cake2", itemOp = "2000원"),
                        ItemInfo(item = "cake3", itemOp = "3000원"),
                        ItemInfo(item = "cake4", itemOp = "4000원"),
                        ItemInfo(item = "cake5", itemOp = "5000원")
                    ),
                    sum = "Total",
                    sumOp = "15000원"
                ),
                social = Social(
                    likeCount = 286,
                    commentCount = 45,
                    sharedCount = 845
                ),
                buttons = listOf(
                    Button(
                        "웹으로 보기",
                        Link(
                            webUrl = "https://developers.kakao.com",
                            mobileWebUrl = "https://developers.kakao.com"
                        )
                    ),
                    Button(
                        "앱으로 보기",
                        Link(
                            androidExecutionParams = mapOf(
                                "key1" to "value1",
                                "key2" to "value2"
                            ),
                            iosExecutionParams = mapOf("key1" to "value1", "key2" to "value2")
                        )
                    )
                )
            )
            ShareClient.instance.shareDefault(this, defaultFeed) { sharingResult, error ->
                if (error != null) {
                    //Log.e(TAG, "카카오톡 공유 실패", error)
                } else if (sharingResult != null) {
                    startActivity(sharingResult.intent)
                }

            }
        }

    }
    }


apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "com.kakao.sdk:v2-all:2.13.0" // 전체 모듈 설치, 2.11.0 버전부터 지원
        implementation "com.kakao.sdk:v2-user:2.13.0" // 카카오 로그인
        implementation "com.kakao.sdk:v2-talk:2.13.0" // 친구, 메시지(카카오톡)
        implementation "com.kakao.sdk:v2-story:2.13.0" // 카카오스토리
        implementation "com.kakao.sdk:v2-share:2.13.0" // 메시지(카카오톡 공유)
        implementation "com.kakao.sdk:v2-navi:2.13.0" // 카카오내비
        implementation "com.kakao.sdk:v2-friend:2.13.0" // 카카오톡 소셜 피커, 리소스 번들 파일 포함

**DEPS**}

android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES**
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.INTERNET" />
    <queries>
        <package android:name="com.kakao.talk" />
    </queries>
    
    <application
            android:name = "com.unity3d.player.GlobalApplication">
        
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:theme="@style/UnityThemeSelector">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <data android:host="kakaolink"
                      android:scheme="kakao$e07f4a5a3e806afcfed2788cd2073bf2" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        </activity>
    </application>
</manifest>

해당 파일 빌드중 Compose 관련 에러가 발생하는데 compose 를 따로 사용하지않는 상태로 알고있는데 혹시 사용되는 부분이 있을까요?

카카오에서 제공되는 SDK 에서는 compose ui를 사용하지 않습니다.
때문에 개발하고 계시는 환경을 확인해 보셔야 할것 같은데요
전체 디펜던시를 확인해 보시고, 클린빌드 하시는게 좋을것 같습니다.


다른이야기지만, 아래 코드에서 scheme 에 $ 값은 오타로 보입니다.

1개의 좋아요