Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

FATAL EXCEPTION: main

2021-02-22 23:12:08.141 26475-26475/com.example.aluraviagens E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.aluraviagens, PID: 26475
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.aluraviagens/com.example.aluraviagens.ui.adapter.activity.ListaDePacotes}: java.lang.ClassNotFoundException: Didn't find class "com.example.aluraviagens.ui.adapter.activity.ListaDePacotes" on path: DexPathList[[zip file "/data/app/com.example.aluraviagens-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.aluraviagens-2/lib/arm64, /system/lib64, /vendor/lib64]]
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2649)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:165)
        at android.app.ActivityThread.main(ActivityThread.java:6375)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.aluraviagens.ui.adapter.activity.ListaDePacotes" on path: DexPathList[[zip file "/data/app/com.example.aluraviagens-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.aluraviagens-2/lib/arm64, /system/lib64, /vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:74)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2639)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:165) 
        at android.app.ActivityThread.main(ActivityThread.java:6375) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) 
2 respostas

Resolvi, no arquivo xml na linha tools:context estava com o endereco dos diretorios errados. Corrigi dai compilou

solução!

Acho que duplicou a questão, vou fechar esse tópico :)