从更新firestore:17.0.1
到后,我遇到以下错误firestore:17.0.2
java.lang.RuntimeException: Internal error in Firestore (0.6.6-dev).
at com.google.firebase.firestore.g.zza.zzb(SourceFile:324)
at com.google.firebase.firestore.g.zzd.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7331)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.AssertionError: impossible
at java.lang.Enum$1.create(Enum.java:45)
at java.lang.Enum$1.create(Enum.java:35)
at libcore.util.BasicLruCache.get(BasicLruCache.java:54)
at java.lang.Enum.getSharedConstants(Enum.java:211)
at java.util.EnumSet.noneOf(EnumSet.java:48)
at io.opencensus.trace.Span.<clinit>(Span.java:58)
at io.opencensus.trace.SpanBuilder$NoopSpanBuilder.startSpan(SpanBuilder.java:238)
at io.grpc.internal.CensusTracingModule$ClientCallTracer.<init>(CensusTracingModule.java:240)
at io.grpc.internal.CensusTracingModule.newClientCallTracer(CensusTracingModule.java:122)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor.interceptCall(CensusTracingModule.java:381)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:104)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor.interceptCall(CensusStatsModule.java:654)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:104)
at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:560)
at com.google.firebase.firestore.g.zzm.zza(SourceFile:61)
at com.google.firebase.firestore.f.zza.zza(SourceFile:193)
at com.google.firebase.firestore.f.zzo.zzk(SourceFile:332)
at com.google.firebase.firestore.f.zzo.zza(SourceFile:256)
at com.google.firebase.firestore.b.zzab.zza(SourceFile:162)
at com.google.firebase.firestore.b.zzd.zza(SourceFile:79)
at com.google.firebase.firestore.b.zzf.zzc(SourceFile:132)
at com.google.firebase.firestore.b.zzn.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at com.google.firebase.firestore.g.zza$zza.run(SourceFile:190)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoSuchMethodException: values []
at java.lang.Class.getMethod(Class.java:624)
at java.lang.Class.getDeclaredMethod(Class.java:586)
at java.lang.Enum$1.create(Enum.java:41)
at java.lang.Enum$1.create(Enum.java:35)
at libcore.util.BasicLruCache.get(BasicLruCache.java:54)
at java.lang.Enum.getSharedConstants(Enum.java:211)
at java.util.EnumSet.noneOf(EnumSet.java:48)
at io.opencensus.trace.Span.<clinit>(Span.java:58)
at io.opencensus.trace.SpanBuilder$NoopSpanBuilder.startSpan(SpanBuilder.java:238)
at io.grpc.internal.CensusTracingModule$ClientCallTracer.<init>(CensusTracingModule.java:240)
at io.grpc.internal.CensusTracingModule.newClientCallTracer(CensusTracingModule.java:122)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor.interceptCall(CensusTracingModule.java:381)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:104)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor.interceptCall(CensusStatsModule.java:654)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:104)
at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:560)
at com.google.firebase.firestore.g.zzm.zza(SourceFile:61)
at com.google.firebase.firestore.f.zza.zza(SourceFile:193)
at com.google.firebase.firestore.f.zzo.zzk(SourceFile:332)
at com.google.firebase.firestore.f.zzo.zza(SourceFile:256)
at com.google.firebase.firestore.b.zzab.zza(SourceFile:162)
at com.google.firebase.firestore.b.zzd.zza(SourceFile:79)
at com.google.firebase.firestore.b.zzf.zzc(SourceFile:132)
at com.google.firebase.firestore.b.zzn.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at com.google.firebase.firestore.g.zza$zza.run(SourceFile:190)
at java.lang.Thread.run(Thread.java:818)
这是我用于Firestore的代码:
public void fetchDataFromFireStore(final String uuid) {
FirebaseFirestore firebaseFirestore = FirebaseFirestore.getInstance();
Query query = firebaseFirestore.collection(Constants.FirebaseConstants.USER_SPECIFIC_POST).document(uuid).collection(Constants.FirebaseConstants.POST).limit(postPerPageLimit).orderBy(Constants.FirebaseConstants.CREATED_DATE, Query.Direction.DESCENDING);
query.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
@Override
public void onComplete(@NonNull Task<QuerySnapshot> task) {
int count = 0;
if (task.isSuccessful()) {
if (task.getResult().size() == 0) {
mProgressBar.setVisibility(View.GONE);
textViewNoPost.setVisibility(View.VISIBLE);
} else {
mPostRecyclerAdapter.clearPostList();
for (DocumentSnapshot postDocumentSnapshot : task.getResult()) {
count++;
Post post = postDocumentSnapshot.toObject(Post.class);
if (post != null)
mPostRecyclerAdapter.addMyPost(new Post(post.getUserName(), post.getPost(), post.getPostOwnerUuid(), "", post.getTotalLikes(), post.getPostTime(), post.getCategoryName()));
if (count == postPerPageLimit) {
documentSnapshot = postDocumentSnapshot;
}
}
}
mProgressBar.setVisibility(View.GONE);
mPostRecyclerAdapter.setCurrentUserUID(uuid);
mRecyclerView.setAdapter(mPostRecyclerAdapter);
}
}
});
}
摇篮:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
//Gif drawable
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:exifinterface:27.1.1'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.3'
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'com.google.code.gson:gson:2.8.4'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'com.google.firebase:firebase-firestore:17.0.2'
implementation 'com.google.firebase:firebase-invites:16.0.1'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-config:16.0.0'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.ss.bannerslider:bannerslider:2.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.2@aar') {
transitive = true
}
它工作正常,但是更新Firestore版本后却出现了此错误。在问这个问题之前,我尝试了stackoverflow /
internet上所有可用的解决方案,但是没有任何运气。
从firebase支持答复中,如果将来有人遇到此问题,请尝试在解决方案中添加以下内容,以解决此问题:
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
伙计们,请帮帮我,我不能在Flitter中构建或升级任何东西,我会遇到很多类似失败的错误:构建失败,但有一个例外。 出了什么问题:任务'执行失败:app: check ReleaseAarMetadata'。 发生多个任务操作失败:执行com时发生故障。Android建筑格雷德尔。内部的任务。CheckAarMetadataWorkAction > 尝试:使用--stacktrace选项运行以获取
带有我的适配器的代码段是:
问题内容: 如何解决此错误? 原因:java.lang.illegalargumentexception 11-01 11:08:12.845:E / AndroidRuntime(28885):原因:java.lang.IllegalStateException:应用程序的AndroidManifest.xml中的元数据标记的值不正确。预期为4030500,但发现为0。元素中必须具有以下声明:
我是React native和firestore的初学者,使用它们来构建一种社交媒体应用程序,我有一个奇怪的问题(我认为我构建数据库的方式不对)。我想有一个feed,所有的帖子,没有追随者,没有任何东西。我第一次在db中构建帖子时是这样的:用户(集合)- 所以我像这样重新构建了数据库:2个主集合、帖子和用户。完全不同。在用户集合中,只有用户及其数据的文档(姓名、年龄等)。在另一个中,他们的帖子(姓
我又开始学习颤振(前一段时间开始,但停止了)。您可以在下面找到我的代码。如果我在智能手机上运行应用程序,则会出现错误:[核心/无应用程序]未创建Firebase应用程序['DEFAULT'}-调用Firebase.initializeApp()。我阅读了文档,但由于我使用的是最新版本的firebase\u core:^0.5.0、firebase\u auth:^0.18.0 1、cloud\u
我有一个基本的Micronaut应用程序,我正在构建一个本机映像。我正在用这些参数构建它: 映像构建得很好,我能够启动它,但是当尝试访问Firestore时,我得到了以下异常: 在这一点上,我对Micronaut和GraalVM都很陌生,所以我肯定我忽略了一些简单的东西,但是我没有找到关于这个特定错误的很多东西,而且我找到的东西也没有解决我的问题。 我正在使用Micronaut2.0.1并使用ma