简体   繁体   English

如何在带有Parse-1.13.0.jar的Android上使用ParseLogin-UI

[英]How to use ParseLogin-UI on Android with Parse-1.13.0.jar

It appears the ParseUI-Android project that is pulled from gradle isn't compatible with Parse-1.13.0 . 从gradle中拉出的ParseUI-Android项目似乎与Parse-1.13.0不兼容。 Specifically, the version pulled from gradle, the class ParseSignupFragment.java doesn't work with custom ParseUser objects. 具体而言,从版本的Gradle拉,类ParseSignupFragment.java不与自定义的工作ParseUser对象。 This has since been fixed and the master branch has the correct code in it. 此后已修复,并且master分支中包含正确的代码。

Here's what I've done to try to solve this: 这是我为解决此问题所做的工作:

  • Pulled the master branch 拉到主分支
  • Executed the gradle assembleRelease task 执行gradle assembleRelease任务
  • Copied ParseUI-Login/build/intermediates/bundles/release/classes.jar into my Android libs directory ParseUI-Login/build/intermediates/bundles/release/classes.jar复制到我的Android libs目录中
  • Renamed classes.jar to ParseUI-Login-0.0.1.jar classes.jar重命名为ParseUI-Login-0.0.1.jar
  • Added compile files('libs/ParseUI-Login-0.0.1.jar') to my build.gradle 向我的build.gradle添加了compile files('libs/ParseUI-Login-0.0.1.jar')
  • Executed a gradle build 执行gradle构建
  • Fail 失败

I obviously did something wrong, but I'm having a hard time trying to figure it out. 我显然做错了,但是我很难解决。 Any thoughts or suggestions would be greatly appreciated. 任何想法或建议,将不胜感激。

Not as far along migrating off parse to new ENV, so dont know if it will help. 尚未完全从解析迁移到新的ENV,所以不知道是否有帮助。 Below how i use ParseLogin-UI in projects ( i clone 1 subfolder of PLU to a project sub folder (ParseUI-Login) and just refer to it in build.gradle) 下面是我在项目中使用ParseLogin-UI的方式(我将PLU的1个子文件夹克隆到项目子文件夹(ParseUI-Login)中,并在build.gradle中引用它)

top level build.gradle... 顶级build.gradle ...

> ext {
>     facebookSDK = 'com.facebook.android:facebook-android-sdk:4.6.0'
>     androidSupport = 'com.android.support:support-v4:23.0.1'
>     bolts = 'com.parse.bolts:bolts-android:1.2.1'
>     parse = 'com.parse:parse-android:1.10.3'
>     parseFacebookUtils = 'com.parse:parsefacebookutils-v4-android:1.10.3@aar' }

app.build.gradle.dependencies .... app.build.gradle.dependencies ....

  compile 'com.squareup.picasso:picasso:2.3.4'
    compile 'com.android.support:appcompat-v7:23.0.+'
    compile 'com.android.support:recyclerview-v7:23.0.+'

    // rootProject.ext.* variables are defined in project gradle file, you can also use path here.
    compile rootProject.ext.facebookSDK
    compile project(':ParseUI-Login')
    compile rootProject.ext.androidSupport
    compile rootProject.ext.parse
    compile rootProject.ext.parseFacebookUtils

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM