dawish / googlearchitecturedemo Goto Github PK
View Code? Open in Web Editor NEW:fire: 基于谷歌最新MVVM实现组件化架构,使用dataBinding、lifecycle、retrofit2、rxjava2、okhttp、fresco、ARouter。
:fire: 基于谷歌最新MVVM实现组件化架构,使用dataBinding、lifecycle、retrofit2、rxjava2、okhttp、fresco、ARouter。
编译时发现
Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.2.0)
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar'.
> Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not download sqlite-jdbc.jar (org.xerial:sqlite-jdbc:3.20.1)
Could not get resource 'https://jcenter.bintray.com/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
> Could not GET 'https://jcenter.bintray.com/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not download commons-codec.jar (commons-codec:commons-codec:1.10)
Could not get resource 'https://jcenter.bintray.com/commons-codec/commons-codec/1.10/commons-codec-1.10.jar'.
> Could not HEAD 'https://jcenter.bintray.com/commons-codec/commons-codec/1.10/commons-codec-1.10.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not download gson.jar (com.google.code.gson:gson:2.8.0)
Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar'.
> Could not HEAD 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
请问如何解决, Thanks
这个能算是模块化开发吗?
思路很好啊,公司项目中你用的这个思路吗
Error:FAILURE: Build completed with 2 failures.
java.lang.NullPointerException (no error message)
-1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
==============================================================================
Get more help at https://help.gradle.org
BUILD FAILED in 17s
studio导入之后,提示几乎所有的gradle中的依赖都报错,Unable to resolve dependency for ...Could not download ...jar or aar
lib_coremodel类库中的http包中的ApiClient类
getRetrofitInstance方法没有参数
initService的baseUrl参数没有作用
导致新增service方法的话如果复用getGankDataService方法
则ApiConstants中的host设置无效,导致404
项目思路很好,但有个地方不是很认同,把业务逻辑都共用在lib_coremodel,这不符合模块化**吧。例如news和girsl的接口请求已经耦合在同一个模块,如果项目来一个需求,需要girls单独成立一个app。lib_coremodel里面news的代码已经是多余的了。
如果开发过程中有数据库的需求.那数据库放在哪里呢?也都放在lib_coremodel?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.