我在使用Firestore Flutter插件(cloud_firestore)时遇到问题。当我尝试将应用程序与Firestore连接时,该应用程序停止工作并关闭。我尝试遵循此Flutter google plugin problem,但无法正常工作。
Android-> build.grandle
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-03-05 00:59:16.281 ERROR 444 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testApplication': Unsatisfied dependency expressed through field 'parentRepo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parentRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.example.test.ParentRepository.findxx(java.lang.Long)!
... I cut-off this line's
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parentRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.example.test.ParentRepository.findxx(java.lang.Long)!
... I cut-off this line's
Caused by: java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.example.test.ParentRepository.findxx(java.lang.Long)!
... I cut-off this line's
Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: childs of: com.example.test.Parent [SELECT p.childs FROM com.example.test.Parent p where p.id =:id]
... I cut-off this line's
Caused by: org.hibernate.QueryException: could not resolve property: childs of: com.example.test.Parent [SELECT p.childs FROM com.example.test.Parent p where p.id =:id]
... I cut-off this line's
Caused by: org.hibernate.QueryException: could not resolve property: childs of: com.example.test.Parent
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:73) ~[hibernate-core-
... I cut-off this line's
Android-> App-> build.grandle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
这是问题的标题
原因:java.lang.ClassNotFoundException:在路径:DexPathList [[zip文件“ /system/framework/org.apache]上找不到类” com.google.android.gms.internal.stable.zzb“。 http.legacy.boot.jar“,压缩文件“ /data/app/com.******.******-T9x9hLO9ijJmBPPrACSK5g==/base.apk"],nativeLibraryDirectories=[/data/app /com.******.********-T9x9hLO9ijJmBPPrACSK5g==/lib/x86,/data/app/com.*********.****** **-T9x9hLO9ijJmBPPrACSK5g == / base.apk!/ lib / x86,/ system / lib]]
我使用以下依赖项: firebase_auth:0.5.11 cloud_firestore:0.7.3 shared_preferences:0.4.3
有人可以帮助我解决问题