ddnosh / AndroidQuick

【Deprecated】AndroidQuick项目旨在提供一套进行Android APP快速开发的代码库。 AndroidQuick包含了开发一个APP所涉及到的常用的架构、模块、功能、技术点、解决方案等,每个部分附以详细的说明和demo实例。开发者在开发的过程中可以从AndroidQuick找到常用的实例进行参考。
MIT License
534 stars 129 forks source link

项目跑不起来 AS3.3.2。。。 #6

Open netgb opened 5 years ago

netgb commented 5 years ago

import la.xiong.androidquick.demo.injector.component.DaggerActivityComponent;

请问这个类没上存吗?

ddnosh commented 5 years ago

@netgb 这个是dagger2在编译的时候自动生成的,你clean一下试试。

netgb commented 5 years ago

谢谢提醒,试了还是没能生成。 clean 、rebuild删除build目录重新跑项目也不生成。

用AS3.3.2跑 QuickGankhttps://github.com/ddnosh/QuickTV 修改了build.gradle文件能成功跑起来。。

@ddnosh 昨天已经解决了AS不能生成dagger2相关类的问题了,是和AS所安装的插件有关, 一次性卸载掉了IDE好几个插件重启IDE后能正常生成了,具体是哪个插件没有排查。

netgb commented 5 years ago

@ddnosh 同样AS3.3.2 换别机器上能成功跑起来,可能之前机器上的AS坏了。。。

netgb commented 5 years ago

E/e: CLEARTEXT communication to gank.io not permitted by network security policyjava.net.UnknownServiceException: CLEARTEXT communication to gank.io not permitted by network security policy E/LogUtil: BaseTActivity: error:java.net.UnknownServiceException: CLEARTEXT communication to gank.io not permitted by network security policy

点击MVC例子,API28访问http url有问题,用这方案暂时解决了 NetworkSecurityConfig: No Network Security Config specified

ddnosh commented 5 years ago

@netgb 好的,我记录一下

netgb commented 5 years ago

WARNING: DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018. Affected Modules: sample

// incremental true 正式版AS3.3.2 ,这行注释了才能跑起来。 还有可以更新一下sample模块的build.gradle里面jar包依赖的关键字吗,不然用AS3.3.2检出项目每次需要手工修改才没提示。

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Affected Modules: sample @ddnosh

ddnosh commented 5 years ago

@netgb 已提交更新

netgb commented 5 years ago

AS 3.4版本,gradle插件3.4,gradle版本5.1.1,不能生成com.androidwind.annotation.TagService; 错误: 程序包com.androidwind.annotation不存在

换回来3.3.2gradle插件,4.10.2gradle版问题解决了。

netgb commented 5 years ago

implementation 'la.xiong.androidquick:AndroidQuick:1.2.3' @ddnosh 新建项目直接依赖库文件好像跑不起来,有解决方案吗 More than one file was found with OS independent path 'META-INF/rxjava.properties'

//解决: app/build.gradle文件下修改添加以下内容解决了。 packagingOptions {//加上这写代码 pickFirst 'META-INF/*' }

netgb commented 5 years ago

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Affected Modules: treeview

WARNING: Configuration 'provided' is obsolete and has been replaced with 'compileOnly'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Affected Modules: sample

AS重新检出项目还是会有错误提示!

netgb commented 5 years ago

The Android Gradle plugin supports only Butterknife Gradle plugin version 9.0.0-rc2 and higher. The following dependencies do not satisfy the required version: root project 'AndroidQuick' -> com.jakewharton:butterknife-gradle-plugin:8.4.0

//解决: butterknife插件改如下,能Run起来了 classpath 'com.jakewharton:butterknife-gradle-plugin:9.+'

ddnosh commented 5 years ago

implementation 'la.xiong.androidquick:AndroidQuick:1.2.3' @ddnosh 新建项目直接依赖库文件好像跑不起来,有解决方案吗 More than one file was found with OS independent path 'META-INF/rxjava.properties'

//解决: app/build.gradle文件下修改添加以下内容解决了。 packagingOptions {//加上这写代码 pickFirst 'META-INF/*' }

对,要加上这一段,可参考https://github.com/ddnosh/android-tiny-template 工程里面引用包的配置。