GUJ Discussões   :   últimos tópicos   |   categorias   |   GUJ Respostas

Como Habilitar Minhas Chamadas no Stacktrace?

P.S:
Depois de desabilitar a linha do ProGuard no build.gradle, começou a aparecer, vez ou outra, a chamada de minha classe, mas ao fazer uma mudança na parte indicada, voltou a não mostrar a chamada dentro de uma classe própria.


Boa tarde.
Meu app em Java/Android apresenta um erro ao voltar de um chooser de imagens, para uma Fragment que chamou a Activity do Android, mas diferente de todos os milhares de erros anteriores, a IDE Android Studio não apresenta a(s) chamada(s) de uma classe própria minha, apenas de classes do Android.
Não apresenta mensagem de conflito de dependências, como em outros casos já resolvidos.

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.provados9, PID: 13772
java.lang.IndexOutOfBoundsException: Index: 23, Size: 1
at java.util.ArrayList.get(ArrayList.java:437)
at android.widget.ArrayAdapter.getItem(ArrayAdapter.java:394)
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:450)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:416)
at android.widget.Spinner.makeView(Spinner.java:724)
at android.widget.Spinner.layout(Spinner.java:672)
at android.widget.Spinner.onLayout(Spinner.java:634)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.widget.ScrollView.onLayout(ScrollView.java:1660)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1762)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1762)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at androidx.appcompat.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:530)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:784)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3470)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2938)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1952)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8171)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
at android.view.Choreographer.doCallbacks(Choreographer.java:796)
at android.view.Choreographer.doFrame(Choreographer.java:731)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Meu build.gradle com linhas comentadas para as quais achei que poderia gerar conflito, mas nada informado antes ou depois a respeito disto.

plugins {
id ‘com.android.application’
}

apply plugin: ‘com.android.application’
apply plugin: ‘com.google.gms.google-services’

android {
compileSdkVersion 30
buildToolsVersion “30.0.3”
// PARTE ADICIONADA PARA RESOLVER DEPENDÊNCIAS DUPLICADAS
applicationVariants.all { variant ->
// Return compile configuration objects of a variant.
variant.getCompileConfiguration().resolutionStrategy {
// Use Gradle’s ResolutionStrategy API
// to customize how this variant resolves dependencies.

}
// Return runtime configuration objects of a variant.
variant.getRuntimeConfiguration().resolutionStrategy {

}
// Return annotation processor configuration of a variant.
variant.getAnnotationProcessorConfiguration().resolutionStrategy {

}
}
// PARTE ADICIONADA PARA RESOLVER DEPENDÊNCIAS DUPLICADAS

defaultConfig {
applicationId “com.example.provados9”
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName “1.0”
multiDexEnabled true
testInstrumentationRunner “androidx.test.runner.AndroidJUnitRunner”
vectorDrawables.useSupportLibrary = true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android-optimize.txt’), ‘proguard-rules.pro’
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
// implementation fileTree(dir: ‘libs’, include: [’*.jar’])
// implementation ‘androidx.appcompat:appcompat:1.2.0’
implementation ‘com.google.android.material:material:1.2.1’
implementation ‘androidx.constraintlayout:constraintlayout:2.0.1’
implementation files(‘libs/android-query-full.0.26.7.jar’)
// implementation ‘androidx.legacy:legacy-support-v4:1.0.0’
// testImplementation ‘junit:junit:4.+’
// androidTestImplementation ‘androidx.test.ext:junit:1.1.2’
// androidTestImplementation ‘androidx.test.espresso:espresso-core:3.3.0’
implementation platform(‘com.google.firebase:firebase-bom:28.4.1’)
implementation ‘com.google.firebase:firebase-firestore’
implementation ‘com.google.firebase:firebase-analytics’
implementation ‘com.google.firebase:firebase-auth’
implementation ‘com.google.android.gms:play-services-auth:19.0.0’
implementation ‘com.google.firebase:firebase-storage’
implementation ‘org.jsoup:jsoup:1.13.1’
implementation ‘com.google.code.gson:gson:2.8.6’
implementation ‘androidx.multidex:multidex:2.0.1’
implementation “io.grpc:grpc-okhttp:1.32.2”
// implementation ‘androidx.appcompat:appcompat:1.3.0-beta01’
// implementation ‘androidx.cardview:cardview:1.0.0’
implementation ‘com.facebook.android:facebook-android-sdk:[4,5)’
implementation ‘com.facebook.android:facebook-login:[8.1)’
implementation ‘com.android.support:support-annotations:28.0.0’
}

//