appspector / android-sdk

AppSpector is a debugging service for mobile apps
https://appspector.com
43 stars 9 forks source link

Error while trying to add the Appspector Plugin #24

Open thproflord opened 2 days ago

thproflord commented 2 days ago

Currently I'm facing a problem trying to add the appspector plugin, is giving me this error: Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.appspector.sdk'.

My build.gradle project level

buildscript {
    apply from: new File(rootProject.projectDir, 'dependencies.gradle')//"$projectDir/dependencies.gradle"

    repositories {
        mavenCentral()
        google()
        jcenter()
        maven { url "https://maven.appspector.com/artifactory/android-sdk" }
    }

    dependencies {
        classpath "com.android.tools.build:gradle:${gradle_version}"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
        classpath "com.google.gms:google-services:${google_play_services}"
        classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
        classpath "com.appspector:android-sdk-plugin:$appspector_version"
    }
}

My build.gradle app levvel

plugins {
    id 'org.jetbrains.kotlin.plugin.compose' version '2.0.0'
}
apply plugin: 'com.android.application'
apply plugin: 'com.appspector.sdk'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlinx-serialization'
dependencies {
    implementation "com.appspector:android-sdk:${appspector_version}"
}

Tried with appspector version: 1.+ and 1.4.4

My agp is 8.5.1 and my gradle is 8.10.1

Dimdron commented 2 days ago

Hello! Unfortunately, we had to stop maintaining Gradle Plugin due to removed necessary APIs from AGP 8. Please, integrate only the SDK to your project. And sorry that the README confused you.

thproflord commented 2 days ago

Ok thank you, with the problem I wanted to solve with the gradle plugin, how can I be able to see all the network request in the app? Currently I have 2 layers of network, one directly in the app that I can log correctly and other as a external library (KMM) wich currently I cannot see in the logs, but few months back with the gradle plugin I could see