baaam
63
2019-02-11 18:50:32
1
508

Channel is unrecoverably broken and will be disposed! 에러에 대해서 질문드립니다


제가 유튜브 보면서 앱만드는 연습을 하고 있는데요

해당 에러가 떠서 질문드립니다.

2019-02-11 18:45:17.016 6529-6529/? E/memtrack: Couldn't load memtrack module (No such file or directory)
2019-02-11 18:45:17.017 6529-6529/? E/android.os.Debug: failed to load memtrack module: -2
2019-02-11 18:45:17.488 6548-6548/? E/memtrack: Couldn't load memtrack module (No such file or directory)
2019-02-11 18:45:17.488 6548-6548/? E/android.os.Debug: failed to load memtrack module: -2
2019-02-11 18:45:23.468 6560-6560/? E/memtrack: Couldn't load memtrack module (No such file or directory)
2019-02-11 18:45:23.468 6560-6560/? E/android.os.Debug: failed to load memtrack module: -2
2019-02-11 18:45:23.668 6604-6606/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xa8 in tid 6606 (Binder:6604_1)
2019-02-11 18:45:24.533 1655-1729/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=6, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-02-11 18:45:24.935 2208-4499/? E/NetworkScheduler: Unrecognised action provided: android.intent.action.PACKAGE_REMOVED
2019-02-11 18:45:26.323 2509-3082/? E/Icing: File /data/user/0/com.google.android.gms/files/gms_icing_mdd_garbage_file not found.
2019-02-11 18:45:26.328 6874-6874/? E/memtrack: Couldn't load memtrack module (No such file or directory)
2019-02-11 18:45:26.328 6874-6874/? E/android.os.Debug: failed to load memtrack module: -2
2019-02-11 18:45:27.288 1347-1354/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2019-02-11 18:45:27.824 2509-2718/? E/Icing: Aborting indexing of corpus omnibox
제 manifest입니다
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.juyeon.myapplication">
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

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

</manifest>
package com.example.juyeon.myapplication

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.google.android.gms.auth.api.Auth
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.android.gms.auth.api.signin.GoogleSignInClient
import com.google.android.gms.auth.api.signin.GoogleSignInOptions
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.GoogleAuthProvider
import kotlinx.android.synthetic.main.activity_login.*

class LoginActivity : AppCompatActivity() {
var auth : FirebaseAuth? = null
var googleSignInClient : GoogleSignInClient? = null
var GOOGLE_LOGIN_CODE = 9001

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)

loginAndSignup.setOnClickListener {
signinAndSignup()
}

googleLogin.setOnClickListener {
//first step
googleLogin()
}

var gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build()
googleSignInClient = GoogleSignIn.getClient(this,gso)
}
fun googleLogin(){
var signInIntent = googleSignInClient?.signInIntent
startActivityForResult(signInIntent,GOOGLE_LOGIN_CODE)
}

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == GOOGLE_LOGIN_CODE){
var result = Auth.GoogleSignInApi.getSignInResultFromIntent(data)
if (result.isSuccess){
var account = result.signInAccount
//second step
firebaseAuthWithGoogle(account!!)
}
}
}
fun firebaseAuthWithGoogle(account : GoogleSignInAccount?){
var credential = GoogleAuthProvider.getCredential(account?.idToken,null)
auth?.signInWithCredential(credential)
?.addOnCompleteListener {
task ->
if(task.isSuccessful){
//로그인
Toast.makeText(this,"@string/loginSuccess",Toast.LENGTH_LONG).show()
}else{
//에러 메세지 표시
Toast.makeText(this,"@string/loginFailed",Toast.LENGTH_LONG).show()
}
}
}
fun signinAndSignup (){
auth?.createUserWithEmailAndPassword(loginEmail.text.toString(),loginPassword.text.toString())?.addOnCompleteListener {
task ->
if(task.isSuccessful){
//계정생성
moveMainPage(task.result?.user)
Toast.makeText(this,"@string/signSuccess",Toast.LENGTH_LONG).show()
}else if (task.exception?.message.isNullOrEmpty()){
//에러메세지 표시
Toast.makeText(this,task.exception?.message,Toast.LENGTH_LONG).show()
}else{
//계정잇다면 로그인
signinEmail()
}
}
}
fun signinEmail(){
auth?.signInWithEmailAndPassword(loginEmail.text.toString(),loginPassword.text.toString())?.addOnCompleteListener {
task ->
if(task.isSuccessful){
//로그인
Toast.makeText(this,"@string/loginSuccess",Toast.LENGTH_LONG).show()
}else{
//에러 메세지 표시
Toast.makeText(this,"@string/loginFailed",Toast.LENGTH_LONG).show()
}
}
}
fun moveMainPage(user : FirebaseUser?){
if (user != null)
startActivity(Intent(this, MainActivity::class.java))
}
}
어떤 이유로 해당에러가 뜨는지 도통 모르겠습니다
0
0
  • 답변 1

  • goya
    25
    2019-02-11 22:54:52

    Try an other emulator...

    And even a real device! The memtrack module error seems related to your emulator. So change it into Run configuration, don't forget to change the API too.


    https://stackoverflow.com/questions/22629568/couldnt-load-memtrack-module-logcat-error/22745487#comment34571006_22629568

    1
  • 로그인을 하시면 답변을 등록할 수 있습니다.