Android Question FirestoreEx error QuerySnapshot

I updated the sdk
I succeed running the other examples like AuthSample
I changed the manifest so it's the new format
I removed all the additional jars files
And still I get the same error


manifest:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.

'########   Firebase   ###########
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
'CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
'########   End Firebase   ###########



log:
B4A Version: 9.80
Java Version: 11
Parsing code.    (0.01s)
Building folders structure.    (0.02s)
Compiling code.    (0.05s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling debugger engine code.    (0.00s)
Compiling generated Java code.    Error
B4A line: 89
Log($\
src\com\kadalshany\firestoreex\main.java:486: error: cannot access QuerySnapshot
anywheresoftware.b4a.keywords.Common.LogImpl("4131096",("Driver_Snapshot("+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_snap.getSize()))+","+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_snap.getObject()))+")"),0);
                                                                                                                                                                                                                                                            ^
  class file for com.google.firebase.firestore.QuerySnapshot not found
 

DonManfred

Expert
Licensed User
Longtime User
'######## Firebase ########### CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase) CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase) CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications) CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics) 'CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds) CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth) '######## End Firebase ###########
At least you are missing the Manifestchanges needed.
Did you copy the additional jars to your additional library folder?
Did you added the dependencies in your Main?

The needed files you find in the Dropboxlink you got.
 
Last edited:
Upvote 0
I m testing the original example without any change. I just added the json file.
and I still get an error:

log:
B4A Version: 9.80
Java Version: 11
Parsing code.    (0.01s)
Building folders structure.    (0.02s)
Compiling code.    (0.07s)
Compiling layouts code.    (0.01s)
Organizing libraries.    Error
Maven artifact not found: com.google.firebase/firebase-database-collection
 
Upvote 0
If I remove the firebase additional jar The com.google.firebase/firebase-database-collection go away but again com.google.firebase.firestore.QuerySnapshot is missing


code:
'#AdditionalJar: com.google.firebase:firebase-common
'#AdditionalJar: com.google.firebase:firebase-auth
'#AdditionalJar: com.google.firebase:firebase-database
'#AdditionalJar: com.google.firebase:firebase-core
'#AdditionalJar: com.google.firebase:firebase-common
'#AdditionalJar: com.google.firebase:firebase-firestore
'#AdditionalJar: com.google.gms:google-services
#AdditionalJar: grpc-all-1.22.1.jar
#AdditionalJar: grpc-api-1.22.1.jar
#AdditionalJar: grpc-core-1.22.1.jar
#AdditionalJar: grpc-okhttp-1.22.1.jar
#AdditionalJar: grpc-android-1.22.1.aar
#AdditionalJar: grpc-android-1.22.1-zero.jar
#AdditionalJar: grpc-context-1.22.1.jar
#AdditionalJar: grpc-stub-1.22.1.jar
'#AdditionalJar: grpc-protobuf-1.22.1.jar
#AdditionalJar: grpc-protobuf-lite-1.22.1.jar

#AdditionalJar: opencensus-api-0.23.0.jar
#AdditionalJar: opencensus-contrib-grpc-metrics-0.23.0.jar
#AdditionalJar: opencensus-contrib-http-util-0.23.0.jar
#AdditionalJar: perfmark-api-0.17.0.jar
#AdditionalJar: guava-27.1-android.jar
#ExcludeClasses: com.google.guava:guava-jdk5

log:
B4A Version: 9.80
Java Version: 11
Parsing code.    (0.01s)
Building folders structure.    (0.02s)
Compiling code.    (0.05s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling debugger engine code.    (0.00s)
Compiling generated Java code.    Error
B4A line: 89
Log($\
src\com\kadalshany\firestoreex\main.java:486: error: cannot access QuerySnapshot
anywheresoftware.b4a.keywords.Common.LogImpl("0131096",("Driver_Snapshot("+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_snap.getSize()))+","+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_snap.getObject()))+")"),0);
                                                                                                                                                                                                                                                            ^
  class file for com.google.firebase.firestore.QuerySnapshot not found
 
Upvote 0
Top