인프런 커뮤니티 질문&답변

서기님의 프로필 이미지
서기

작성한 질문수

[초중급편] 안드로이드 데이팅 앱 만들기(Android Kotlin)

강의소개

Render problem 오류를 도저히 해결을 못하겠어요 ㅠㅠ

작성

·

411

0

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        app:layout_constraintTop_toTopOf="parent">

        <ImageView
            android:id="@+id/settingIcon"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_margin="3dp"
            android:layout_marginTop="16dp"
            android:layout_marginEnd="16dp"
            android:contentDescription="프로필사진"
            android:src="@drawable/profile_img"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />


    </androidx.constraintlayout.widget.ConstraintLayout>

    <com.yuyakaido.android.cardstackview.CardStackView
        android:id="@+id/cardStackView"
        android:contentDescription="cardstackview"
        android:layout_marginTop="60dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</androidx.constraintlayout.widget.ConstraintLayout>

KakaoTalk_20231106_222900390.png코드와 에러부분 캡쳐해서 올립니다 ㅠㅠ

답변 1

0

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

전체 코드를 깃허브 / 구글 드라이브를 통해서 링크를 공유해주시면 살펴볼게요~

서기님의 프로필 이미지
서기
질문자

https://github.com/alsxm4625/sogating4/tree/main/app/src/main/res/layout

깃허브에 올렸습니다 확인 부탁드려요!

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

원래 처음에 실행이 되었나요?

android:theme="@style/Theme.AppCompat.Light"

를 모두 빼먹으셨는데
AndroidManifest.xml을 아래와 같이 변경해보세요.

 

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

    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.YOUR_PERMISSION" />

    <application
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        tools:targetApi="31">
        <activity
            android:name=".message.MyLikeListActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />

        <activity
            android:name=".message.ListViewAdapter"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".setting.SettingActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".setting.MyPageActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".SplashActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".auth.LoginActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".auth.JoinActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".auth.IntroActivity"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".slider.CardStackAdapter"
            android:theme="@style/Theme.AppCompat.Light"
            android:exported="false" />
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:theme="@style/Theme.AppCompat.Light">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
서기님의 프로필 이미지
서기

작성한 질문수

질문하기