>

오늘 나는 드문 문제에 부딪쳤다. 많은 기기에서 한동안 작동하는 앱이 있습니다. 어제 우리는 사용자가 기기에서 앱을 시작할 때 앱이 다운되었다는 피드백을 받았습니다. 얼마 후 나는 그가 안드로이드 9를 사용하고 있음을 알았으므로 Genymotion에 안드로이드 9를 다운로드하여 앱이 충돌한다는 것을 놀라게했습니다! 2 초 동안 활동이 표시되고 사라집니다!

완전한 로그 고양이가 있습니다 :

>     01-22 10:29:09.569 8154-8154/? I/Zygote: seccomp disabled by setenforce 0 01-22 10:29:09.571 8154-8154/? I/app.yarbax.com:
> Late-enabling -Xcheck:jni 01-22 10:29:09.638 8154-8154/?
> W/app.yarbax.com: Unexpected CPU variant for X86 using defaults: x86
> 01-22 10:29:10.473 8154-8154/app.yarbax.com W/app.yarbax.com: JIT
> profile information will not be recorded: profile file does not exits.
> 01-22 10:29:10.476 8154-8154/app.yarbax.com I/chatty:
> uid=10072(app.yarbax.com) identical 9 lines 01-22 10:29:10.477
> 8154-8154/app.yarbax.com W/app.yarbax.com: JIT profile information
> will not be recorded: profile file does not exits. 01-22 10:29:10.539
> 8154-8154/app.yarbax.com I/InstantRun: starting instant run server: is
> main process 01-22 10:29:10.586 8154-8172/app.yarbax.com D/libEGL:
> Emulator has host GPU support, qemu.gles is set to 1. 01-22
> 10:29:10.580 8154-8154/app.yarbax.com I/app.yarbax.com: type=1400
> audit(0.0:1318): avc: denied { connectto } for comm=45474C20496E6974
> path="/dev/socket/property_service"
> scontext=u:r:untrusted_app:s0:c72,c256,c512,c768 tcontext=u:r:init:s0
> tclass=unix_stream_socket permissive=1 01-22 10:29:10.615
> 8154-8172/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/egl/libGLES_emulation.so from current namespace instead of
> sphal namespace. 01-22 10:29:10.622 8154-8172/app.yarbax.com E/libEGL:
> load_driver(/vendor/lib/egl/libGLES_emulation.so): dlopen failed:
> library "/vendor/lib/egl/libGLES_emulation.so" not found 01-22
> 10:29:10.622 8154-8172/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/egl/libEGL_emulation.so from current namespace instead of
> sphal namespace. 01-22 10:29:10.678 8154-8172/app.yarbax.com D/libEGL:
> loaded /vendor/lib/egl/libEGL_emulation.so 01-22 10:29:10.685
> 8154-8172/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/egl/libGLESv1_CM_emulation.so from current namespace
> instead of sphal namespace. 01-22 10:29:10.686
> 8154-8172/app.yarbax.com D/libEGL: loaded
> /vendor/lib/egl/libGLESv1_CM_emulation.so 01-22 10:29:10.743
> 8154-8172/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/egl/libGLESv2_emulation.so from current namespace instead
> of sphal namespace. 01-22 10:29:10.846 8154-8172/app.yarbax.com
> D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so 01-22
> 10:29:11.430 8154-8154/app.yarbax.com W/ActivityThread:
> handleWindowVisibility: no activity for token
> android.os.BinderProxy@da73b1f 01-22 10:29:11.722
> 8154-8154/app.yarbax.com W/app.yarbax.com: Accessing hidden method
> Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z
> (light greylist, reflection) 01-22 10:29:11.723
> 8154-8154/app.yarbax.com W/app.yarbax.com: Accessing hidden method
> Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light
> greylist, reflection) 01-22 10:29:11.973 8154-8154/app.yarbax.com
> D/OpenGLRenderer: HWUI GL Pipeline 01-22 10:29:12.136
> 8154-8154/app.yarbax.com I/RenderThread: type=1400 audit(0.0:1322):
> avc: denied { connectto } for path=006C6F63616C5F6F70656E676C
> scontext=u:r:untrusted_app:s0:c72,c256,c512,c768
> tcontext=u:r:local_opengl:s0 tclass=unix_stream_socket permissive=1
>                                                             
>                                                             [ 01-22 10:29:12.139  8154: 8193 D/         ]
>                                                             HostConnection::get() New Host Connection established 0xddde8780, tid
> 8193 01-22 10:29:12.351 8154-8165/app.yarbax.com I/app.yarbax.com:
> Background concurrent copying GC freed 8593(2MB) AllocSpace objects,
> 4(76KB) LOS objects, 51% free, 1462KB/2MB, paused 779us total
> 159.736ms 01-22 10:29:12.416 8154-8193/app.yarbax.com I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay
> retrieved: 0 01-22 10:29:12.417 8154-8193/app.yarbax.com
> I/ConfigStore:
> android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay
> retrieved: 0 01-22 10:29:12.417 8154-8193/app.yarbax.com
> I/OpenGLRenderer: Initialized EGL, version 1.4 01-22 10:29:12.417
> 8154-8193/app.yarbax.com D/OpenGLRenderer: Swap behavior 1 01-22
> 10:29:12.447 8154-8193/app.yarbax.com D/EGL_emulation:
> eglCreateContext: 0xdfc052a0: maj 2 min 0 rcv 2 01-22 10:29:12.756
> 8154-8193/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from
> current namespace instead of sphal namespace. 01-22 10:29:12.757
> 8154-8193/app.yarbax.com D/vndksupport: Loading
> /vendor/lib/hw/gralloc.vbox86.so from current namespace instead of
> sphal namespace. 01-22 10:29:12.764 8154-8193/app.yarbax.com
> E/EGL_emulation: tid 8193: eglSurfaceAttrib(1354): error 0x3009
> (EGL_BAD_MATCH) 01-22 10:29:12.764 8154-8193/app.yarbax.com
> W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface
> 0xdfc055a0, error=EGL_BAD_MATCH 01-22 10:29:14.811
> 8154-8193/app.yarbax.com I/OpenGLRenderer: Davey! duration=2712ms;
> Flags=0, IntendedVsync=4492063682638, Vsync=4492163682634,
> OldestInputEvent=9223372036854775807, NewestInputEvent=0,
> HandleInputStart=4492167660692, AnimationStart=4492169595648,
> PerformTraversalsStart=4492169998418, DrawStart=4492764972455,
> SyncQueued=4492821116533, SyncStart=4492856457248,
> IssueDrawCommandsStart=4492888890180, SwapBuffers=4494704179105,
> FrameCompleted=4494811078552, DequeueBufferDuration=76000,
> QueueBufferDuration=562000,  01-22 10:29:14.825
> 8154-8154/app.yarbax.com I/Choreographer: Skipped 158 frames!  The
> application may be doing too much work on its main thread. 01-22
> 10:29:14.951 8154-8154/app.yarbax.com V/StudioProfiler:
> StudioProfilers agent attached. 01-22 10:29:15.143
> 8154-8230/app.yarbax.com V/StudioProfiler: Acquiring Application for
> Events 01-22 10:29:15.482 8154-8193/app.yarbax.com I/OpenGLRenderer:
> Davey! duration=3298ms; Flags=0, IntendedVsync=4492184195735,
> Vsync=4494817528963, OldestInputEvent=9223372036854775807,
> NewestInputEvent=0, HandleInputStart=4494825185499,
> AnimationStart=4494825251715, PerformTraversalsStart=4494825688057,
> DrawStart=4494886564207, SyncQueued=4494889170892,
> SyncStart=4494889271810, IssueDrawCommandsStart=4494889389381,
> SwapBuffers=4495407091147, FrameCompleted=4495482426839,
> DequeueBufferDuration=202000, QueueBufferDuration=332000,  01-22
> 10:29:15.540 8154-8154/app.yarbax.com A/libc: Fatal signal 6
> (SIGABRT), code -6 (SI_TKILL) in tid 8154 (app.yarbax.com), pid 8154
> (app.yarbax.com)

여기 내 활동 레이아웃이 있습니다 :

   <?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="#f7f8f8"
    android:layoutDirection="rtl"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:background="#d5d7d7"
            android:padding="5dp"
            android:layout_gravity="center"
            android:gravity="center">
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="درباره ی ما"
                android:padding="15dp"
                android:textColor="@android:color/black"
                android:textSize="@dimen/header_text_size"
                android:layout_gravity="center"
                android:gravity="center"/>
        </LinearLayout>
        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">
                    <ImageView
                        android:layout_width="100dp"
                        android:layout_height="100dp"
                        android:layout_gravity="center"
                        android:src="@mipmap/appicon"
                        android:layout_margin="10dp"/>
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:paddingLeft="30dp"
                        android:paddingRight="10dp"
                        android:textAlignment="viewStart"
                        android:textStyle="bold"
                        android:gravity="center"
                        android:layout_gravity="center"
                        android:lineSpacingExtra="5dp"
                        android:textSize="22sp"
                        android:layout_marginBottom="10dp"
                        android:text="درباره ی ما بیشتر بدانید"
                        android:textColor="@color/colorPrimaryDark"/>
                </LinearLayout>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingLeft="20dp"
                    android:paddingRight="20dp"
                    android:gravity="right"
                    android:layout_gravity="center"
                    android:lineSpacingExtra="8dp"
                    android:textSize="14sp"
                    android:autoText="true"
                    android:text="@string/aboutus_text"
                    android:textColor="#000000"/>
                <FrameLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="50dp"
                    android:layout_gravity="center">
                    <ImageView
                        android:layout_width="250dp"
                        android:layout_height="125dp"
                        android:background="@mipmap/aboutus_logo"/>
                    <ImageView
                        android:src="@drawable/images_corner"
                        android:layout_width="250dp"
                        android:layout_height="125dp" />
                </FrameLayout>
            </LinearLayout>
        </ScrollView>
    </LinearLayout>

</FrameLayout>

그녀는 나의 활동 수업입니다 :

   package app.yarbax.com;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
 * Created by shayanrhm on 1/1/19.
 */
public class AboutUs extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedinstance){
        super.onCreate(savedinstance);
        setContentView(R.layout.aboutus);
    }
    @Override
    public void onBackPressed(){
        super.onBackPressed();
        finish();
    }
}

여기 내 build.gradle 파일이 있습니다 :

apply plugin: 'com.android.application'
android {
    compileSdkVersion 28
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    defaultConfig {
        applicationId "app.yarbax.com"
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 23
        versionName "2.3"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-vector-drawable:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.cedarmaps:CedarMapsSDK:3.1.2'
    compile 'com.google.code.gson:gson:2.8.5'
    compile 'com.baoyz.actionsheet:library:1.1.7'
    compile 'com.squareup.okhttp3:okhttp:3.12.0'
    api 'com.cedarmaps:mapbox-android-sdk:6.8.0'
    implementation 'com.google.code.gson:gson:2.8.5'
    compile 'com.github.zcweng:switch-button:0.0.3@aar'
    //noinspection GradleCompatible
    compile 'com.google.android.gms:play-services-maps:16.0.0'
}
configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '26.0.0'
            }
        }
    }
}

어떤 사람이 같은 문제가 있고 이것에 대한 해결책이 있는지 궁금합니다.

사전 감사합니다


  • 이전 angular - 라우팅이 작동하지만 데이터가 표시되지 않습니다
  • 다음 visual studio - 이전 커밋의 실제 코드 파일 (C #, Java 등)을 수정합니까 (git 사용)?