Forum für diejenigen, die für Android programmieren
Guest
Wie behebe ich diesen Fehler? Die unbekannte Eigenschaft „publishedGroupId“ für das Projekt „:lokdonencrypt“ vom Typ „or
Post
by Guest » 05 Jan 2025, 12:08
Ich versuche, eine Android-Bibliothek auf Jcenter hochzuladen. Ich habe erfolgreich ein Konto erstellt, ein Repo, ein Paket und eine Version erstellt. Jetzt ändere ich die build.gradle-Dateien für das Modul und erhalte immer wieder diesen Fehler
Verursacht durch: groovy.lang.MissingPropertyException: Die unbekannte Eigenschaft „publishedGroupId“ für konnte nicht abgerufen werden Projekt „:lokdonencrypt“ vom Typ org.gradle.api.Project.
Wie löse ich das?
Code: Select all
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
android {
compileSdkVersion 29
buildToolsVersion "30.0.2"
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "0.0.1"
publishedGroupId "com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
/* task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
from androidJavadocs.destinationDir
classifier = 'javadoc'
}
task androidSourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}*/
ext {
bintrayRepo = 'maven' // Name of the Bintray repo you created
bintrayName = ' com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt' // Bintray package name
publishedGroupId = 'com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt' // Group ID of the SDK which will be added in implementation line of gradle
artifact = 'lokdonencrypt' // Artifact ID of the SDK which will be added in implementation line of gradle
libraryVersion = '0.0.1' // Version of the library you created in Bintray
libraryName = 'lokdonencrypt' // It is generally the module name
libraryDescription = 'LokDon mobile encryption (ECSMID ) for developers'
siteUrl = 'https://github.com/UncleSamTech/LokdonEncryptionModule'
gitUrl = 'https://github.com/UncleSamTech/LokdonEncryptionModule.git'
developerId = 'cbusiness'
developerName = 'Lokdon'
developerEmail = '[email protected] '
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
//Bintray Credentials
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintrayUsername = properties.getProperty('BINTRAY_USERNAME')
bintrayUserOrg = properties.getProperty('BINTRAY_ORG')
bintrayApiKey = properties.getProperty('BINTRAY_API_KEY')
}
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'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'commons-io:commons-io:+'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'commons-codec:commons-codec:1.8'
implementation 'com.amazonaws:aws-android-sdk-s3:2.7.+'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.+'
}
apply from: 'bintray.script'
build.gradle(Module:app)
Code: Select all
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 29
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.lokdonencryption.lokdonencryptionmodule"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "0.0.1"
//publishedGroupId "com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt"
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 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.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation project(":lokdonencrypt")
implementation 'commons-io:commons-io:+'
implementation 'commons-codec:commons-codec:1.8'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'com.amazonaws:aws-android-sdk-s3:2.7.+'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.+'
// implementation 'com.amazonaws.util.EncodingSchemeEnum.BASE64'
}
1736075335
Guest
Ich versuche, eine Android-Bibliothek auf Jcenter hochzuladen. Ich habe erfolgreich ein Konto erstellt, ein Repo, ein Paket und eine Version erstellt. Jetzt ändere ich die build.gradle-Dateien für das Modul und erhalte immer wieder diesen Fehler [b]Verursacht durch: groovy.lang.MissingPropertyException: Die unbekannte Eigenschaft „publishedGroupId“ für konnte nicht abgerufen werden Projekt „:lokdonencrypt“ vom Typ org.gradle.api.Project.[/b] Wie löse ich das? [code]build.gradle(Module:lokencrypt) [/code] [code]apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' android { compileSdkVersion 29 buildToolsVersion "30.0.2" defaultConfig { minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "0.0.1" publishedGroupId "com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } /* task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { from androidJavadocs.destinationDir classifier = 'javadoc' } task androidSourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' }*/ ext { bintrayRepo = 'maven' // Name of the Bintray repo you created bintrayName = ' com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt' // Bintray package name publishedGroupId = 'com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt' // Group ID of the SDK which will be added in implementation line of gradle artifact = 'lokdonencrypt' // Artifact ID of the SDK which will be added in implementation line of gradle libraryVersion = '0.0.1' // Version of the library you created in Bintray libraryName = 'lokdonencrypt' // It is generally the module name libraryDescription = 'LokDon mobile encryption (ECSMID ) for developers' siteUrl = 'https://github.com/UncleSamTech/LokdonEncryptionModule' gitUrl = 'https://github.com/UncleSamTech/LokdonEncryptionModule.git' developerId = 'cbusiness' developerName = 'Lokdon' developerEmail = '[email protected] ' licenseName = 'The Apache Software License, Version 2.0' licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' allLicenses = ["Apache-2.0"] //Bintray Credentials Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) bintrayUsername = properties.getProperty('BINTRAY_USERNAME') bintrayUserOrg = properties.getProperty('BINTRAY_ORG') bintrayApiKey = properties.getProperty('BINTRAY_API_KEY') } 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' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'commons-io:commons-io:+' implementation 'org.apache.commons:commons-io:1.3.2' implementation 'commons-codec:commons-codec:1.8' implementation 'com.amazonaws:aws-android-sdk-s3:2.7.+' implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.+' } apply from: 'bintray.script' [/code] [b]build.gradle(Module:app)[/b] [code] plugins { id 'com.android.application' } android { compileSdkVersion 29 buildToolsVersion "30.0.2" defaultConfig { applicationId "com.lokdonencryption.lokdonencryptionmodule" minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "0.0.1" //publishedGroupId "com.lokdonencryption.lokdonencryptionmodule:lokdonencrypt" 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 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.4' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation project(":lokdonencrypt") implementation 'commons-io:commons-io:+' implementation 'commons-codec:commons-codec:1.8' implementation 'org.apache.commons:commons-io:1.3.2' implementation 'com.amazonaws:aws-android-sdk-s3:2.7.+' implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.+' // implementation 'com.amazonaws.util.EncodingSchemeEnum.BASE64' } [/code]
0 Replies
8 Views
Last post by Guest
25 Jan 2025, 11:04
0 Replies
3 Views
Last post by Guest
03 Jan 2025, 15:43
0 Replies
1 Views
Last post by Guest
07 Jan 2025, 13:08
0 Replies
3 Views
Last post by Anonymous
29 Dec 2024, 11:05
0 Replies
2 Views
Last post by Guest
05 Feb 2025, 03:41