Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant't build app in version 0.0.5 #474

Closed
Yuu-DevID opened this issue Apr 15, 2024 · 3 comments
Closed

Cant't build app in version 0.0.5 #474

Yuu-DevID opened this issue Apr 15, 2024 · 3 comments

Comments

@Yuu-DevID
Copy link

Yuu-DevID commented Apr 15, 2024

build.gradle

plugins {
    id 'com.android.application'
}



android {
    namespace 'com.konjousoft.whatsappbot'
    compileSdk 34

    defaultConfig {
        applicationId "com.konjousoft.whatsappbot"
        minSdk 24
        targetSdk 34
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    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 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.google.android.material:material:1.11.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'com.github.auties00:cobalt:0.0.5'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

    annotationProcessor 'com.github.auties00:cobalt:0.0.5'

}

settings.gradle

pluginManagement {
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://releases.aspose.com/java/repo/"
        }
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://releases.aspose.com/java/repo/"
        }
        maven {
            url "https://www.jitpack.io/"
        }
    }
}

rootProject.name = "WhatsApp Bot"
include ':app'

The Error:
image

> Could not resolve com.github.auties00:cobalt:0.0.5.
   Required by:
       project :app
    > Could not resolve com.github.auties00:cobalt:0.0.5.
       > Could not parse POM https://repo.maven.apache.org/maven2/com/github/auties00/cobalt/0.0.5/cobalt-0.0.5.pom
          > Content is not allowed in prolog.

image

@Darker935
Copy link
Contributor

Fixed on #477

@ByteAge
Copy link

ByteAge commented Apr 28, 2024

Not fixed yet!

Update:
For anyone that have problem with gradle do this:

step 1:
Open this file: C:\Users\Legobyte\.gradle\caches\modules-2\files-2.1\com.github.auties00\cobalt\0.0.5\8e7fb8d878068b581315dd274413b5603296f863\cobalt-0.0.5.pom using notepad
file name is "cobalt-0.0.5.pom" so you can search it instead of manually finding it(I'm using Everything Search).

step2:
Remove the first character in the file and save it.
there is a space character before "<?xml version="1.", that's the problem.
Result: before: <?xml version="1., after: <?xml version="1.

step3:
Rerun the gradle and it should be fine now.

Happy Coding 😊!

@XomaDev
Copy link

XomaDev commented Apr 29, 2024

@ByteAge thanks for that, unfortunately on linux, it seems to immediately delete the cache files :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants