PrototypeZ / SaveState

:icecream: Generate 'onSaveInstanceState' and 'onRestoreInstanceState' methods for your application automatically
1.01k stars 79 forks source link

和注解框架冲突 #7

Closed for7GG closed 6 years ago

for7GG commented 6 years ago

这个和注解框架(https://github.com/androidannotations)冲突,编译不通过,有解决方案吗 @FragmentArg @JvmField @AutoRestore var type = 0//(1表示标准课程,0 表示学习历史)}

PrototypeZ commented 6 years ago

请问:

  1. 遇到的报错信息是什么?
  2. 是否使用本项目的最新版本?
  3. 您使用的Gradle版本是多少?
  4. 您的 Gradle 文件配置片段可否贴上来?

以上信息能否提供一下,谢谢!

for7GG commented 6 years ago

qq 20180713153011

for7GG commented 6 years ago

2.使用了kotlin 3.是 4.Gradle版本是4.4

`apply plugin: 'com.android.application' apply plugin: "kotlin-kapt"

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'save.state'`

for7GG commented 6 years ago

`buildscript { ext.kotlin_version = '1.2.51' repositories { google() jcenter() mavenCentral() maven { url "https://www.jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // dependency for save-state
    classpath "io.github.prototypez:save-state:0.1.6"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}`

PrototypeZ commented 6 years ago

谢谢您汇报这个问题,原因已经定位到,我会尽快修复

PrototypeZ commented 6 years ago

@jielundewode 您好,刚刚 release 0.1.7, 修复了上述问题,您可以再试一下

for7GG commented 6 years ago

谢谢,问题得到解决