Rohan Maity
06/01/2019, 7:56 AMplugins {
id("com.android.library")
id("org.jetbrains.kotlin.multiplatform").version("1.3.31")
}
android { /* ... */ }
kotlin {
android { // Create the Android target
// Provide additional configuration if necessary
}
}
. But following this I get CONFIGURE FAILED in 0s
Plugin [id: 'com.android.library'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
I am unable to apply android closuregildor
06/01/2019, 8:15 AMRohan Maity
06/01/2019, 8:22 AMbuildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
}
}
plugins {
id 'kotlin-multiplatform' version '1.3.31'
id("com.android.library")
}
repositories {
mavenCentral()
}
group 'io.thelimitbreaker'
version '0.0.1'
apply plugin: 'maven-publish'
kotlin {
jvm()
js()
// For ARM, should be changed to iosArm32 or iosArm64
// For Linux, should be changed to e.g. linuxX64
// For MacOS, should be changed to e.g. macosX64
// For Windows, should be changed to e.g. mingwX64
linuxX64("linux"){
binaries{
sharedLib{
baseName = "kparser"
}
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
}
}
linuxMain {
}
linuxTest {
}
}
}
wrapper {
gradleVersion = "5.1.1"
distributionType = "ALL"
}
ilya.gorbunov
06/01/2019, 9:13 AMbuildscript
block doesn't affect the plugins
block in the same gradle file, because AFAIK plugins
block is parsed and interpreted first of all.gildor
06/01/2019, 9:49 AMRohan Maity
06/01/2019, 9:50 AMgildor
06/01/2019, 9:52 AMRohan Maity
06/01/2019, 9:54 AMgildor
06/01/2019, 9:55 AMRohan Maity
06/02/2019, 2:23 PMERROR: Cannot read packageName from /home/thelimitbreaker/KParser/kparser/src/main/AndroidManifest.xml
Affected Modules: KParser.kparser
AndroidManifest.xml
manually in specified path <manifest package="io.thelimitbreaker.kparser">
</manifest>
still getting this errorgildor
06/02/2019, 2:44 PMRohan Maity
06/02/2019, 3:33 PMsrc/main/AndroidManifest.xml
when I didn't create the file. So I created the file in that directory. Still got same errorgildor
06/02/2019, 4:44 PMRohan Maity
06/02/2019, 5:05 PM