小编Gui*_*tro的帖子

Firebase firestore集合计数

是否可以使用新的firebase数据库firestore计算集合中有多少项?

如果是这样,我该怎么做?

firebase google-cloud-firestore

102
推荐指数
12
解决办法
7万
查看次数

名为"Foo"的项目不包含名为"Bar"bitrise.io的方案

我只是在bitrise.io中配置一个项目.但是xcode-build失败并出现错误:

xcodebuild: error: The project named "Foo" does not contain a scheme named "Bar". The "-list" option can be used to find the names of the schemes in the project.
Run Code Online (Sandbox Code Playgroud)

我仔细检查,方案Bar确实存在于项目Foo中

xcode xcodebuild ios bitrise

32
推荐指数
5
解决办法
2万
查看次数

CocoaPods和Swift 3.0

我只是想在我的一个项目中尝试Swift 3.0.Xcode打开迁移窗口以更新我的项目以使用Swift 3.0.

问题是,我只是想更新我的项目,并保持Pods项目不变,因为在我pod install再次运行之后任何更改都将被丢弃.

任何人已经有解决方案吗?

ios cocoapods swift swift3 xcode8

21
推荐指数
2
解决办法
2万
查看次数

Android Jack mockito另类

也许还为时过早,但正如杰克和吉尔今天宣布的那样,我对此感到非常兴奋.我真的很想去,但他们也说:

读取.class文件的各种工具(例如JaCoCo,Mockito和一些lint检查)目前与Jack编译器不兼容.

杰克编译器已有一个模拟替代品吗?

java android mockito dex android-jack-and-jill

17
推荐指数
1
解决办法
587
查看次数

底部的UITableView额外空间

我的桌面视图底部有一个额外的空间,如图所示:

tableView中的所有行都具有71pt的固定高度.

在此输入图像描述

storyboard uitableview ios

13
推荐指数
3
解决办法
3万
查看次数

Xcode 8.2无法设置权利成员资格

我试图在我的应用程序上配置通用链接,但无法正常工作.我读到通用链接无法正常工作的一个常见原因是权利文件未包含在构建中.

但是我无法设置我的权利的目标成员资格(截图如下),所有复选框都是禁用的.

在此输入图像描述

xcode ios ios-universal-links

13
推荐指数
1
解决办法
2425
查看次数

kotlin-jpa 插件不生成默认构造函数

我正在使用 kotlin-jpa 为我的 kotlin 实体生成默认构造函数,但是,并没有生成:

我刚用过:

id("org.jetbrains.kotlin.plugin.jpa") version "1.3.21"


@Entity
data class PlanSubscription(@Id ...
Run Code Online (Sandbox Code Playgroud)

但是带有 kotlin-jpa 插件的事件不会生成构造函数:

No default (no-argument) constructor for class

java jpa kotlin

9
推荐指数
1
解决办法
1804
查看次数

使用界面构建器真的是一个不好的做法?

我开始在一家新公司开发ios.在这里,他们教我永远不要使用iterface-builder,说它很难维护代码,并且它有一些限制.

在netbeans中使用java应用程序的界面构建我看到很多"坏代码",但我没有看到它使用IB,除了我在互联网上看到很多IB代码,只有少数代码没有它.

对于一个大型的地方,没有人是ios开发的初学者是一个坏的实践使用IB?

interface-builder ios

7
推荐指数
2
解决办法
5411
查看次数

核心数据dao模式

我正在开始为ios开发,现在我正在研究核心数据.有一件事对我来说并不清楚,当我在学习时,很多人都在管理控制器上管理核心数据实体.对我来说,这不是MVC,因为核心数据来自模型层.

所以我认为使用DAO模式实现核心数据会很好,但在此之前我想知道是否存在任何核心数据模式,或者是否存在使用核心数据实现DAO的一些缺点?

cocoa core-data

7
推荐指数
1
解决办法
3093
查看次数

Parse + Robolectric 导致 java.lang.VerifyError:操作数堆栈上的类型错误

我有一个使用 robolectric 进行数百个单元测试的应用程序,在我的应用程序中添加 Parse SDK 后,Parse.initialize(this, "", "");所有测试都开始失败并出现错误causing java.lang.VerifyError: Bad type on operand stack,尽管应用程序运行没有问题。

编辑:我知道在没有 Parse 的情况下运行测试的解决方法。我希望能够运行使用 Parse 框架的测试。

完整的堆栈跟踪如下所示。

/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/Android Studio.app/Contents/bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath "/Applications/Android Studio.app/Contents/lib/idea_rt.jar:/Applications/Android Studio.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/guilhermecastro/Library/Android/sdk/platforms/android-23/data/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/classes/test/enem/debug:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/classes/enem/debug:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/robolectric-annotations/3.1-SNAPSHOT/b766a056ea427a742dd79506bdbb63252393a1cf/robolectric-annotations-3.1-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-auth/8.4.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-auth/8.4.0/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-commons/5.0.1/7b7147a390a93a14d2edfdcf3f7b0e87a0939c3e/asm-commons-5.0.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.google.android.apps.common.testing.accessibility.framework/accessibility-test-framework/2.1/c2d6267c3ad0435ddf9e27a94a0e0af4ca3fdfbb/accessibility-test-framework-2.1.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/8.4.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/8.4.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.4.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.4.0/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.1/2fd56467a018aafe6ec6a73ccba520be4a7e1565/asm-5.0.1.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.3.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.3.0/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.androidannotations/rest-spring-api/4.0-SNAPSHOT/437f51d0168f1fc7276228c632f40a580e4cd032/rest-spring-api-4.0-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-vision/8.4.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-vision/8.4.0/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.jayway.awaitility/awaitility/1.7.0/e4fa7955cab67d880e4868a0795cce3498ea7bf2/awaitility-1.7.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.6.0/a0990e2e812ac6639b6ce955c91b13228500476e/jackson-annotations-2.6.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/shadows-core/3.1-SNAPSHOT/b82376c4080f576f9ae7dd8d5e69d4e9ad015e08/shadows-core-3.1-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/labelledspinner-release/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/labelledspinner-release/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/robolectric/3.1-SNAPSHOT/6473b51558001a1f38d905947eff5108e90280cf/robolectric-3.1-SNAPSHOT.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-android/1.2.0/6ee2953ccf51ce72b6d548c30c4633b99eb4f9dd/bolts-android-1.2.0.jar:/Users/guilhermecastro/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.3.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.3.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.3.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.3.0/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/xmlpull/xmlpull/1.1.3.1/2b8e230d2ab644e4ecaa94db7cdedbc40c805dfa/xmlpull-1.1.3.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.parse/parse-android/1.13.0/58a7d54b6a4f28be11f0cecec93097eddf473e6f/parse-android-1.13.0.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.3.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.3.0/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.3/fd32786786e2adb664d5ecc965da47629dca14ba/commons-codec-1.3.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.ibm.icu/icu4j/53.1/786d9055d4ca8c1aab4a7d4ac8283f973fd7e41f/icu4j-53.1.jar:/Applications/Android Studio.app/Contents/gradle/m2repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/beta/1.1.4/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/beta/1.1.4/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/cglib/cglib-nodep/3.1/aa83efbd1aedc4f26bdf00e7ea78191483f2c9b3/cglib-nodep-3.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.almworks.sqlite4java/sqlite4java/0.282/745a7e2f35fdbe6336922e0d492c979dbbfa74fb/sqlite4java-0.282.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.1/1b1e6e9d869acd704056d0a4223071a511c619e6/asm-tree-5.0.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/shadows-support-v4/3.1-SNAPSHOT/48ece111d7d02dc991f2fa43ca427fb3cda211f0/shadows-support-v4-3.1-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/answers/1.3.6/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/answers/1.3.6/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.springframework.android/spring-android-core/1.0.1.RELEASE/e68f0e8e4b636ee30c4de58953be38d9b72a5e3b/spring-android-core-1.0.1.RELEASE.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-ant-tasks/2.1.3/b09be554228d66d208e5fef5266844aacf443abc/maven-ant-tasks-2.1.3.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant/1.8.0/7b456ca6b93900f96e58cc8371f03d90a9c1c8d1/ant-1.8.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/19.0-rc2/93e17f60bc524c2610b41c494bb829c11ca89436/guava-19.0-rc2.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.mikhaellopez/circularimageview/2.1.1/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.mikhaellopez/circularimageview/2.1.1/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant-launcher/1.8.0/8b53ba16fa62fb1034da8f1de200ddc407c8381/ant-launcher-1.8.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/xpp3/xpp3_min/1.1.4c/19d4e90b43059058f6e056f794f0ea4030d60b86/xpp3_min-1.1.4c.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-tasks/1.4.0/d85884acf6810a3bbbecb587f239005cbc846dc4/bolts-tasks-1.4.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/robolectric-utils/3.1-SNAPSHOT/b52242aa999e3c7069f9e0ff573bf4ecbc8dec07/robolectric-utils-3.1-SNAPSHOT.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.androidannotations/androidannotations-api/4.0-SNAPSHOT/6df845decdeef73e5b631cdaa82306a6a03b199b/androidannotations-api-4.0-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-analytics/8.4.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-analytics/8.4.0/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.thoughtworks.xstream/xstream/1.4.8/520d90f30f36a0d6ba2dc929d980831631ad6a92/xstream-1.4.8.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.3.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.3.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.3.0/jars/libs/internal_impl-23.3.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-all/1.10.19/539df70269cc254a58cccc5d8e43286b4a73bf30/mockito-all-1.10.19.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-util/5.0.1/7c8caddfbd0b2d7b844f8fcc75175b9cb9cf4724/asm-util-5.0.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk16/1.46/ce091790943599535cbb4de8ede84535b0c1260c/bcprov-jdk16-1.46.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/glide/3.7.0/9e9eeaf9948ee4d6c3ab354e8dc14368f16994a4/glide-3.7.0.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/2.1/87c0ea803b69252868d09308b4618f766f135a96/objenesis-2.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.0.3/fcacc35075d9c3114da4c4122b42d78786135c90/httpclient-4.0.3.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/io.fabric.sdk.android/fabric/1.3.10/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/io.fabric.sdk.android/fabric/1.3.10/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.6.3/142ce64dcd709a4b5f6e7d71305a31d3893d077/jackson-core-2.6.3.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.0.1/e813b8722c387b22e1adccf7914729db09bcb4a9/httpcore-4.0.1.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/crashlytics/2.5.5/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/crashlytics/2.5.5/res:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/robolectric-resources/3.1-SNAPSHOT/945b87482365c347080c5b78fd268f1bd8567bd4/robolectric-resources-3.1-SNAPSHOT.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/crashlytics-core/2.3.8/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.crashlytics.sdk.android/crashlytics-core/2.3.8/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.springframework.android/spring-android-rest-template/1.0.1.RELEASE/e132d929bd181941f79b0d63edafb8a86ae6fd33/spring-android-rest-template-1.0.1.RELEASE.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.6.3/5c4fcae53dd82e2c549b8322d78c6ff47c94c8a8/jackson-databind-2.6.3.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/design/23.3.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/design/23.3.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.3.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.3.0/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/5.0.1/e286fbee48efacb4e7c175f7948d9d8b2ab52352/asm-analysis-5.0.1.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protobuf-java/2.6.1/d9521f2aecb909835746b7a5facf612af5e890e8/protobuf-java-2.6.1.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.6.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.6.0/jars/classes.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/org.robolectric/shadows-httpclient/3.1-SNAPSHOT/6b20423f62a6afa8c8eaefa7735f13fa7599497c/shadows-httpclient-3.1-SNAPSHOT.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/com.ximpleware/vtd-xml/2.11/ee5bcf62c1acf76434ee9f1c67a840bafef72a6d/vtd-xml-2.11.jar:/Users/guilhermecastro/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/8.4.0/res:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/8.4.0/jars/classes.jar:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/sourceFolderJavaResources/test/enem/debug:/Users/guilhermecastro/Documents/appprova-android/app/build/intermediates/sourceFolderJavaResources/enem/debug:/Users/guilhermecastro/Documents/appprova-android/build/generated/mockable-android-23.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 com.appprova.core.activity.AnswerActivityTest,testWrongAnswer
Exception in thread "pool-3-thread-1" java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    com/parse/ParsePinningEventuallyQueue.resume()V @20: putfield
  Reason:
    Type 'bolts/Task$TaskCompletionSource' (current frame, stack[1]) is not assignable to 'bolts/TaskCompletionSource'
  Current Frame:
    bci: @20
    flags: { }
    locals: { 'com/parse/ParsePinningEventuallyQueue' }
    stack: …
Run Code Online (Sandbox Code Playgroud)

java android robolectric parse-platform

7
推荐指数
1
解决办法
3130
查看次数