Android Studio疑难解决

导入第三方类库错误:Could not find com.github.* :{jitpack-release}

在使用progresshint 的第三方库时,直接在gradle中添加

1
2
3
4
5
6
7
repositories {  
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.techery.progresshint:library-addition:{jitpack-release}'
}

但是爆出了错误

1
2
3
4
Error:Could not find com.github.techery.progresshint:library-addition:{jitpack-release}.  
Required by:
wnacg:app:unspecified
Search in build.gradle files

{jitpack-release}换成版本号就可以了
解决代码

1
2
3
4
5
6
7
repositories {  
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.techery.progresshint:library-addition:0.2.3'
}

找不到v4、v7包

1
2
3
4
 Rendering Problems Missing styles. Is the correct theme chosen for this layout?  Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.  The following classes could not be found:  
- android.support.v7.widget.AppCompatSeekBar (Fix Build Path, Create Class)
- android.support.v7.widget.RecyclerView (Fix Build Path, Create Class)
Tip: Try to build the project. Failed to find style 'textViewStyle' in current theme (62 similar errors not shown)

检查了gradle中是否有导入

1
2
3
compile 'com.android.support:support-v4:23.4.0'  
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'

仍然找不到v4v7
最后在SDK Manager中发现Android Support Library的版本号才更新到23.2.1
换成23.2.1就好了

点击进入云乞讨模式!
  • 本文作者: Ahaochan
  • 本文链接: Android_Studio_question
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
0%