'A problem occurred configuring project ':DragRecylerView'
A problem occurred configuring project ':DragRecylerView'.
Could not resolve all files for configuration ':DragRecylerView:classpath'. Could not find com.novoda:bintray-release:0.7.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/novoda/bintray-release/0.7.0/bintray-release-0.7.0.pom - https://repo.maven.apache.org/maven2/com/novoda/bintray-release/0.7.0/bintray-release-0.7.0.pom Required by: project :DragRecylerView
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
with build.gradle
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.android.library'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.novoda:bintray-release:0.7.0'
}
}
def version = "1.0.5"
publish {
userOrg = 'shinhyo'
groupId = 'com.wonshinhyo'
artifactId = 'dragrecyclerview'
publishVersion = version
website = 'https://github.com/AleBarreto/DragRecyclerView'
issueTracker = "${website}/issues"
repository = "${website}.git"
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.wonshinhyo.dragrecyclerview'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:recyclerview-v7:' + rootProject.ext.supportVersion
}
D:\HeavenChat\DragRecylerView\build.gradle
Solution 1:[1]
This should help you.
I'm using the latest version of dependency because 0.7.0 is not available to download from repositories (but you can find this version here).
Pay attention: bintray-release is officially no longer under maintenance since 10.02.2022
buildscript {
repositories {
...
jcenter()
}
dependencies {
classpath 'com.novoda:bintray-release:0.9.2'
}
}
Solution 2:[2]
i see error again after update the novoda
A problem occurred configuring project ':DragRecylerView'.
> Could not create an instance of type com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3.
> org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext
Solution 3:[3]
The string inactive_abilities column can be converted to array by removing the [ and ] and splitting the string by ,.
from pyspark.sql import functions as F
data = [{"hero": "axe", "attribute": "strength", "active_abilities": ["q", "w", "r"], "inactive_abilities": "e"},
{"hero": "invoker", "attribute": "intelligence", "active_abilities": ["q", "w", "e", "r", "f", "d"],
"inactive_abilities": None},
{"hero": "phantom assassin", "attribute": "agility", "active_abilities": ["q", "w", "e"],
"inactive_abilities": "r"},
{"hero": "life stealer", "attribute": "strength", "active_abilities": ["q", "r"],
"inactive_abilities": "[w, e]"}, ]
df = spark.createDataFrame(data)
array_select_expr = [
F.when(F.size("parsed_inactive_abilities") > 1, F.trim(F.col("parsed_inactive_abilities")[i])).alias(
f"inactive_ability{i}") if i > 0 else F.when(
F.size("parsed_inactive_abilities") == 1, F.trim(F.col("parsed_inactive_abilities")[0])).alias(
"inactive_abilities")
for i in range(0, 5)]
(df.withColumn("parsed_inactive_abilities", F.split(F.regexp_replace(F.col("inactive_abilities"), "[\[\]]", ""), ","))
.select("*", *array_select_expr)
.drop("parsed_inactive_abilities").show())
Output
+------------------+------------+----------------+------------------+------------------+-----------------+-----------------+-----------------+-----------------+
| active_abilities| attribute| hero|inactive_abilities|inactive_abilities|inactive_ability1|inactive_ability2|inactive_ability3|inactive_ability4|
+------------------+------------+----------------+------------------+------------------+-----------------+-----------------+-----------------+-----------------+
| [q, w, r]| strength| axe| e| e| null| null| null| null|
|[q, w, e, r, f, d]|intelligence| invoker| null| null| null| null| null| null|
| [q, w, e]| agility|phantom assassin| r| r| null| null| null| null|
| [q, r]| strength| life stealer| [w, e]| null| e| null| null| null|
+------------------+------------+----------------+------------------+------------------+-----------------+-----------------+-----------------+-----------------+
# Value in array_select_expr
[Column<'CASE WHEN (size(parsed_inactive_abilities) = 1) THEN trim(parsed_inactive_abilities[0]) END AS inactive_abilities'>,
Column<'CASE WHEN (size(parsed_inactive_abilities) > 1) THEN trim(parsed_inactive_abilities[1]) END AS inactive_ability1'>,
Column<'CASE WHEN (size(parsed_inactive_abilities) > 1) THEN trim(parsed_inactive_abilities[2]) END AS inactive_ability2'>,
Column<'CASE WHEN (size(parsed_inactive_abilities) > 1) THEN trim(parsed_inactive_abilities[3]) END AS inactive_ability3'>,
Column<'CASE WHEN (size(parsed_inactive_abilities) > 1) THEN trim(parsed_inactive_abilities[4]) END AS inactive_ability4'>]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | plplmax |
| Solution 2 | PusakaOfJava Sheor_ray |
| Solution 3 | Nithish |
