@EasyCoding

Почему получаю ошибку ERROR: No build artifacts found?

Создаю библиотеку для android, при попытке опубликовать библиотеку на jitpack, получаю ошибку ERROR: No build artifacts found Вот логи https://jitpack.io/com/github/buratinoapps/WebView...

Вот build.gradle библиотеки

plugins {
    id 'com.android.library'
    id 'maven-publish'
}

group = "com.github.buratinoapps"
version = '1.0'

android {

    compileSdk 32

    defaultConfig {
        minSdk 21
        targetSdk 32

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"
    }

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

dependencies {

    implementation 'androidx.appcompat:appcompat:1.4.2'
    implementation 'com.google.android.material:material:1.6.1'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

afterEvaluate {
    publishing {
        publications {
            release(MavenPublication){
                from components.release
                groupId = 'com.github.buratinoapps' //your git id
                artifactId = 'WebViewSettings' //your-repository
                version = '1.0' // As same as the Tag
            }
        }
    }
}
  • Вопрос задан
  • 90 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы