Comments (6)
Haven't no time to read gradle documents. ))) With setting.gradle works fine! TIA. It should be added in READ.me I think. )
from swipemenurecyclerview.
I see your error outputs dose not contain the location of the jitpack repository. You may need to add a jitpack repository.
See here: https://github.com/aitsuki/SwipeMenuRecyclerView/blob/master/README.en.md#declaring-dependencies
from swipemenurecyclerview.
I made:
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
}
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
And got error:
Caused by: org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle
If change to:
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
}
}
got error:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.github.aitsuki:SwipeMenuRecyclerView:2.0.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/aitsuki/SwipeMenuRecyclerView/2.0.2/SwipeMenuRecyclerView-2.0.2.pom
- https://repo.maven.apache.org/maven2/com/github/aitsuki/SwipeMenuRecyclerView/2.0.2/SwipeMenuRecyclerView-2.0.2.pom
- https://jcenter.bintray.com/com/github/aitsuki/SwipeMenuRecyclerView/2.0.2/SwipeMenuRecyclerView-2.0.2.pom
Required by:
project :app
from swipemenurecyclerview.
In root build.gralde
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
In app/build.gralde
dependencies {
implementation 'com.github.aitsuki:SwipeMenuRecyclerView:2.0.2'
}
I use above configuration, it work fine. Try it?
from swipemenurecyclerview.
The same error: Caused by: org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'. I used default created project from the latest Android Studio. Can't understand why it happens.
from swipemenurecyclerview.
In latest Androidstudio, you may need to add jitpack repository in setting.gradle. If there has a dependencyManager. You should read the gradle documents 😆
from swipemenurecyclerview.
Related Issues (20)
- xml配置过menu后,如果使用代码动态控制menu的隐藏和显示 HOT 1
- end使用LinearLayout content 使用ConstraintLayout会导致无法滑动 HOT 2
- 长按 RecyclerView 的 Item 显示menu问题 HOT 13
- RTL 支持 HOT 4
- 怎么混合使用?左边LongMenu, 右边Parallax HOT 1
- Auto Close property not working HOT 3
- How to identify which menuView currently open ? e.g LeftMenu,Right etc HOT 1
- 侧滑监听
- How to set app:preview programatically HOT 1
- Selectable Stuck selected some times. HOT 2
- README.md里增加Layout的height、width吧 HOT 1
- problem with divided line
- parallax设置margin无效
- 当侧滑菜单展开时,点击菜单内的View会自动关闭菜单,希望是否自动关闭可以让用户自己控制 HOT 2
- 上下滑动时可以不自动关闭菜单的吗 HOT 1
- viewHoder的根部局的点击事件失效了
- 根部局的点击事件失效了 HOT 1
- 偶现删除按钮点击事件失效
- 轮询数据对RecyclerView刷新时,openMenu错位 HOT 3
- 菜单展开的时候,执行notifyDatasetChange,状态会错位 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipemenurecyclerview.