24,200원
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 해결됨[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
안녕하세요? 질문 있습니다.
트와이스 앱 스플래시를 잘라내고 붙이는 부분에서,코드를 똑같이 했음에도 불구하고 오류가 나서강사님이 다른 답변에 코드를 달아 주신 것을 복붙하니 되었습니다.'SplashActiviy 부분의 영역이 intent-filter 부분을 감싸지 않는 것 같은데' 라고답변을 하신 걸 보았는데, 혹시 이게 무슨 말씀이신지 설명해 주실 수 있나요?감사합니다.
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
리니어 레이아웃
Q.레이아웃 없이 이미지들로만 구성해도 되지 않나요?리니어 레이아웃을 틀로 두고 그 안에 이미지뷰 태그로 이미지들을 하나씩 넣어준건데,리니어 레이아웃 없이이제 ImageView태그들로만 구성해서 저런형태를 만들어 줄 수도 있지 않나요?
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
MainActivity파일외 다른 파일들의 병합
저런 파일들 안만들고 main액티비티 파일 하나 안에다 넣어줘서 만들어줄수도 있지 않나요?굳이 저런식으로 파일들을 만들어서 해줘야 하나요?
- 해결됨[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
데이터바인딩 오류가 납니다
안녕하세요! 데이터바인딩 첫번째 강의에서 데이터바인딩 enabled true 부분에서 오류가 나서 글을 남깁니다Unexpected tokens (use ';' to separate expressions on the same line) 라는 오류 문구가 떠서 중간에 ;를 삽입해봤는데요더 난리가 났습니다..
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
class MainActivity : FragmentActivity()로 작성을 해야지 실행이 됩니다.
앱실행시 계속 오류가나서이것저것 알아본결과Main Activity.kt의class MainActivity : AppCompatActivity()를class MainActivity : FragmentActivity()로 바꾸어 실행하였더니 실행되었습니다. 최근에 컴퓨터를 바꿔서 안드로이드 스튜디오를 새로 깔았는데 혹시 이게 원인이 될 수 있을까요? 최신버전에서 NavHostFragment를 사용하기 위해서는 AppCompatActivity()를 사용해야 동작하는 건가요?
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
.push()가 .child() 보다 앞에 가면 안되는거였군요..
viewBinding.btnSave.setOnClickListener { myBookmarkRef .child(Firebase.auth.currentUser!!.uid) .push() .setValue(model) Toast.makeText(this, "저장되었습니다", Toast.LENGTH_SHORT).show() }myBookmarkRef .push() .child(Firebase.auth.currentUser!!.uid) .setValue(model)항상 바로안따라하고 강의먼저 듣고, 써놓은거 바탕으로 과거에 했던거까지 응용해서 제 코드에 넣는방식으로 공부했는데 이번에 제멋대로 아래처럼 하다가 북마크가 안떠서 2일동안 왜안될까 고민했네요 ㅠㅠ아무튼 혹시라도 다른분들도 북마크 안뜨시면 이거 한번 확인하면 좋을거같습니다.
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
실행시 에러 질문
실행시 다음과 같은 에러가 발생 합니다. 추가 해 줄 것이 있는 것인지요? 에러 내용 6 issues were found when checking AAR metadata: 1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32.
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
아 EditText를 string으로 변환하려면 .text가 있어야 됐군요..
customDialogBinding.btnSave.setOnClickListener { // 여기에서 etMemo.toString으로 썼었습니다. val memo = customDialogBinding.etMemo.text.toString() val database = Firebase.database val myRef = database.getReference("myMemo") val model = DataModel(dateText, memo) myRef .push() .setValue(model) mAlertDialog.dismiss() }editText를 string으로 변환하려면 text를 썼어야됐는데 못봐가지고 그냥 editText.toString하다가memo=androidx.appcompat.widget.AppCompatEditText{9486c89 VFED..CL. .F...... 53,53-887,211 #7f0901fb app:id/et_memo aid=1073741827}자꾸 이렇게 파이어베이스에 들어가서 몇시간동안 원인 찾았네요 ㅠㅠ전전강의까지 가서 다시 분석해보니 답을 찾았습니다 ㅋㅋㅋ 모두 포기하지말고 화이팅 😂
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
프래그먼트 오류
프래그먼트 강의 몇번이고 시도해봤는데 계속 동일한 현상이 일어나 문의드립니다~아래는 오류코드 입니다!구글링해도 찾기가 어렵네요 ㅠㅠ +++++++++++++++++++++++++++++++ 8 issues were found when checking AAR metadata: 1. Dependency 'androidx.navigation:navigation-common:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 2. Dependency 'androidx.navigation:navigation-common-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 3. Dependency 'androidx.navigation:navigation-runtime:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 4. Dependency 'androidx.navigation:navigation-ui:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 5. Dependency 'androidx.navigation:navigation-runtime-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 6. Dependency 'androidx.navigation:navigation-ui-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 7. Dependency 'androidx.navigation:navigation-fragment-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 8. Dependency 'androidx.navigation:navigation-fragment:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
강의 전부 수강했어요 감사해요
강사님과 수강하시는 분들늘 건강하시고 부자되세요
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
연필 아이콘 누르면 앱 종료되는 문제발생!!
연필 아이콘을 누르면 에뮬레이터가 꺼지는데 이유가 뭘까요..? 어떻게 해결해야 하는지 잘 모르겠습니다!
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
Project 빌드에 아무것도 없는 경우도 있나요?
현재 2시간 동안 파이어베이스에서 빠져나오지 못하고.. 안드로이드 2번이나 설치했습니다.범블비 버전을 설치 했는데 이게 없을 수 있나요?
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
build에서 계속 문제가 생깁니다.
위와 같이 에러가 발생하는데 어떤 문제가 발생한 것인지 잘모르겠습니다 ㅜ어떻게 해결해야하나요?
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
startActivity(intent) 에러 발생
intent에서 startActivity(intent)를 하면 버튼을 클릭했을 때 넘어가야하는데 에러가 나면서 앱이 종료가 됩니다..방법을 잘 모르겠습니다 어떻게 해야하나요..?
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
Splash Activity 를 먼저 띄우는 방법 좀 알려주세요.
안녕하십니까저는 트와이스 앱 만들기에서 강의소개 및 스플래시강의를 보고 있습니다.우선, New Project를 만들때, 안드로이드 스튜디오 버전이 달라서 그런지 Empty Activity는 없고 이와 유사한 Empty view activity 로 프로젝트를 만들었습니다. 그렇게 해서 Splash를 먼저 띄우기 위해 Manifests에서 Intent를 SplashActivity로 잘라서 붙여넣기 했는데 오류가 발생하네요.오류내용은 아래와 같고 제가 친 코드는 붙여넣기 했습니다.어떻게 해야 되는지 도와주십시요오류내용 : Android resource linking failedC:\Users\User\AndroidStudioProjects\SHEguidebook\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:34: error: unexpected element <intent-filter> found in <manifest><application>. 코드 작성<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <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" android:theme="@style/Theme.SHEguidebook" tools:targetApi="31"> <activity android:name=".SplashActivity" android:exported="false" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <activity android:name=".MainActivity" android:exported="true"> </activity> </application> </manifest>
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
다이어트 메모 앱 만들기 성공했습니다
적응이 않되어 복잡하게 보이네요 하지만 반복연습해 보겠습니다강사님 건강하시고 부자되세요
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
에러가 발생했는데 뭐가 문제인지 모르겠습니다.
한번만 봐주십시요ㅠ
- 해결됨[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
clear() 관련 질문있습니다.
안녕하세요 선생님데이터가 안 담겼는데도 clear를 해주는 이유가 있을까요? 전자가 클리어한것이고 후자는 클리어 안한것입니다.감사합니다..
- 미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
listview 높이설정
listview 높이 설정방법이 궁금합니다.두줄로될때 textsize를 줄이는 방법이 아닌text에 height가 자동으로 맞출수 있게끔 listview height?를 설정할수 있는 방법이 있을까요?
- 해결됨[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
SentenceList를 intent.putExtra로 옮길 수 없을까요?
안녕하세요 좋은 강의로 도움 많이받고있는 학생입니다.똑같은 리스트를 또 선언해야하는 점을 보완하고 싶어서 시도해보고있습니다.intent.putStringArrayListExtra("list",ArrayList(sentenceList)) 와val sentenceList = intent.getStringArrayExtra("list")!!.toMutableList()로 시도해보니 intent.get에서 null값만 옵니다.List를 두 액티비티가 공유해서 사용할 방법이 뭐가 있을까요?MainActivity.ktpackage com.yndoo.goodwords import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.databinding.DataBindingUtil import com.yndoo.goodwords.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { private lateinit var binding:ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val sentenceList = mutableListOf<String>() sentenceList.add("시간이 흐른다고 미래가 되지는 않는다.") sentenceList.add("먼 과거에 몰두하지 말고 가까운 현재를 파악하라.") sentenceList.add("인생에서 가장 진귀한 것은 시간이다.") sentenceList.add("결혼에는 많은 고통이 있지만 독신에는 아무런 즐거움이 없다.") sentenceList.add("야구에 만약이란 없습니다. 만약이란 걸 붙이면 다 우승하죠.") sentenceList.add("지식은 사랑이자, 빛이자, 통찰력이다.") binding = DataBindingUtil.setContentView(this, R.layout.activity_main) binding.showAllSentenceBtn.setOnClickListener { val intent = Intent(this, SentenceActivity::class.java) //intent.putExtra("ㅇㅇ",ArrayList(sentenceList)) intent.putStringArrayListExtra("list",ArrayList(sentenceList)) startActivity(intent) } binding.goodwordTextView.setText(sentenceList.random()) } } SentenceActivity.ktpackage com.yndoo.goodwords import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.widget.ListView class SentenceActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_sentence) /* val sentenceList = mutableListOf<String>() sentenceList.add("시간이 흐른다고 미래가 되지는 않는다.") sentenceList.add("먼 과거에 몰두하지 말고 가까운 현재를 파악하라.") sentenceList.add("인생에서 가장 진귀한 것은 시간이다.") sentenceList.add("결혼에는 많은 고통이 있지만 독신에는 아무런 즐거움이 없다.") sentenceList.add("야구에 만약이란 없습니다. 만약이란 걸 붙이면 다 우승하죠.") sentenceList.add("지식은 사랑이자, 빛이자, 통찰력이다.") */ //val sentenceList = intent.getStringArrayExtra("ㅇㅇ")?.toMutableList() val sentenceList = intent.getStringArrayExtra("list")!!.toMutableList() Log.d("여기",sentenceList.toString()) //로그에 null찍힘 val myadapter = ListViewAdapter(sentenceList!!) val listview = findViewById<ListView>(R.id.sentenceListView) listview.adapter = myadapter } }