Android - Problema de compliacion-Build Analyzer

 
Vista:
sin imagen de perfil

Problema de compliacion-Build Analyzer

Publicado por Víctor (3 intervenciones) el 14/04/2022 17:00:44
Hola buenas estoy haciendo un proyecto en android con java de un chat con firebase para recopilar datos. El problema es que lo he acabado y compila bien sin dar errores ya que está (o se supone que está todo) corregido todo, sin embargo, la aplicación no se abre tanto en mi dispositivo móvil, como el virtual o emulador del propio IDE.
Llego a la conclusión de que es tema del Build sin embargo por mas que miro cosas en internet y trato de solucionarlo me paso horas y no encuentro una solución definitiva. Adjunto imágenes:

-Estas dos fotos son de la compilación correcta del Build Output:

Captura-de-pantalla-262
Captura-de-pantalla-263

-Y está es la imagen del Build Analyzer que me dice/guia que deberia hacer:

Captura-de-pantalla-264

A ver si alguien me puede echar un cable.
Un saludo.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

Problema de compliacion-Build Analyzer

Publicado por HELENA (4 intervenciones) el 29/04/2022 17:31:30
Buenas tardes Victor, no se si podré ayudarte pero a mi me pasaba esto constanemente, abría el emular pero no se abría la aplicación que había creado. La forma en la que conseguí que funcionara es borrando por completo el terminal que había creado y creando uno nuevo (Pixel 4 XL API 30) y seleccionando el sistema R. Además en la opción "Emulate Performance" tienes que que seleccionar siempre como Graphics: Software GLES 2.0.
Aún así a veces tengo que reiniciar el equipo completo porque, aunque no da ningún error aparente, el programa pesa tanto que se queda enganchado.

Espero servirte de ayuda.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Problema de compliacion-Build Analyzer

Publicado por Víctor (3 intervenciones) el 29/04/2022 20:43:20
Hola Helena he probado lo que dices y se nota que se esmera mas en intentar ejecutarlo, sin embargo, sigue sin funcionar habiéndolo probado varias veces tú método y de otras formas distintas. He conseguido que funcione en mi dispositivo físico, aunque en el emulador sigue igual y en otros dispositivos físicos sigue sin funcionar, por lo que sigo casi igual pero avanzado un poco más. Aun así sigo sin saber porque podría pasar esto (que funcione en mi móvil y en otros no).
Te agradezco mucho tú ayuda igualmente y que hayas intentado buscar una solución!!
Un saludo.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Problema de compliacion-Build Analyzer

Publicado por Víctor (3 intervenciones) el 15/05/2022 19:01:27
Esto me sale al hacer debbug por si alguien le sirve de mas ayuda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
05/15 18:48:02: Launching 'app' on realme RMX2001.
Install successfully finished in 2 s 634 ms.
$ adb shell am start -n "com.example.chattfg/com.example.chattfg.Register" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.example.chattfg
Connecting to com.example.chattfg
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
W/ActivityThread: Application com.example.chattfg is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:61024', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1480)
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
E/Parcel: Reading a NULL string not supported here.
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:73 and remote module com.google.android.gms.measurement.dynamite:72
I/DynamiteModule: Selected local version of com.google.android.gms.measurement.dynamite
E/Parcel: Reading a NULL string not supported here.
E/Parcel: Reading a NULL string not supported here.
I/FirebaseInitProvider: FirebaseApp initialization successful
E/ANR_LOG: >>> msg's executing time is too long
E/ANR_LOG: Blocked msg = { when=-3s240ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{aa671fa com.example.chattfg}} } , cost  = 3214 ms
E/ANR_LOG: >>>Current msg List is:
E/ANR_LOG: Current msg <1> = { when=-3s233ms what=159 target=android.app.ActivityThread$H obj=ClientTransaction LaunchActivityItem,ResumeActivityItem }
E/ANR_LOG: Current msg <2> = { when=-3s228ms what=159 target=android.app.ActivityThread$H obj=ClientTransaction TopResumedActivityChangeItem, }
E/ANR_LOG: Current msg <3> = { when=-3s220ms what=9999 target=android.app.ActivityThread$H }
E/ANR_LOG: Current msg <4> = { when=-2s201ms what=0 target=android.app.ActivityThread$H callback=android.app.-$$Lambda$ActivityThread$A4ykhsPb8qV3ffTqpQDklHSMDJ0 }
E/ANR_LOG: Current msg <5> = { when=+861ms what=131 target=android.app.ActivityThread$H obj=android.app.ActivityThread$ProviderRefCount@f4e3ab }
E/ANR_LOG: Current msg <6> = { when=+1s5ms what=131 target=android.app.ActivityThread$H obj=android.app.ActivityThread$ProviderRefCount@17855a1 }
E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
E/libEGL: Invalid file path for libcolorx-loader.so
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: com.example.chattfg, 1:1052096020698:android:05e4238c24c0ccc9a565e3
I/FA: App measurement initialized, version: 64000
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.example.chattfg
D/FA: Debug-level message logging enabled
V/FA: Persisting first open: 1652633287870
V/FA: App measurement setting deferred collection: false
I/oplus.android.OplusFrameworkFactoryImpl: getOplusRedPacketManager
V/FA: onActivityCreated
I/System.out: [okhttp]:check permission begin!
W/System: ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
I/System.out: [okhttp] e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaUtils
I/System.out: [socket]:check permission begin!
W/System: ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
V/FA: Checking service availability
I/System.out: [socket] e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaUtils
V/FA: Service available
V/FA: Connecting to remote service
V/FA: Detected application was in foreground
V/FA: Session started, time: 443748731
I/OplusFeatureCache: Milliseconds spent on init(): 203
I/OplusUXIconLoader: theme=2; uxIconConfig = 216807711444598786
I/OplusUXIconLoader: themeCustomPos=3;commonStylePathArray size=3
I/UXIconPaser: theme=2; pathData =M75,0 C116.421356,-7.6089797e-15 150,33.5786438 150,75 C150,116.421356 116.421356,150 75,150 C33.5786438,150 5.07265313e-15,116.421356 0,75 C-5.07265313e-15,33.5786438 33.5786438,7.6089797e-15 75,0 Z
I/OplusUXIconLoader: path = android.graphics.Path@d8bb36b; config = OplusIconConfig = [ isForeign : true,theme : 2,iconSize : 5000,iconShape : 0,foregroundSize : 6000,artPlusOn : false,shapePath :null, nightMode : false;enableDarkModeIcon = true ]
V/OplusUXIconLoader: checkConfig sIconConfig =:OplusIconConfig = [ isForeign : true,theme : 2,iconSize : 5000,iconShape : 0,foregroundSize : 6000,artPlusOn : false,shapePath :android.graphics.Path@4e82ec8, nightMode : false;enableDarkModeIcon = true ]
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.chattfg, PID: 22727
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.chattfg/com.example.chattfg.Register}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3735)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3903)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2328)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:255)
        at android.app.ActivityThread.main(ActivityThread.java:8212)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
     Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
        at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:852)
        at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:815)
        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:703)
        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
        at com.example.chattfg.Register.onCreate(Register.java:29)
        at android.app.Activity.performCreate(Activity.java:8151)
        at android.app.Activity.performCreate(Activity.java:8135)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3704)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3903) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2328) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:255) 
        at android.app.ActivityThread.main(ActivityThread.java:8212) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049) 
V/FA: Connection attempt already in progress
I/FA: Tag Manager is not found and thus will not be used
I/Process: Sending signal. PID: 22727 SIG: 9
Disconnected from the target VM, address: 'localhost:61024', transport: 'socket'
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar