Imppsobile to run Robo test with my APK on Console Clould Google

143 views
Skip to first unread message

kim hong seok

unread,
Jul 6, 2016, 10:51:05 PM7/6/16
to Firebase Google Group

dear Somebody


Hello nice to meet you I joined this group in first time(Actually I'm using this "group.google.com" from today)

Anyway I hope to run robo test for my apk

However when i tried to run Robo test on Console Cloud Google (https://console.cloud.google.com),

everytime I got the below error.


-> "We experienced an error while validating your APK. Please verify the APK is correct and upload again."


Q1) Can you share me some solution about  this error?


Q2) also Do I have to set like google-services.json file  this link (https://support.google.com/firebase/answer/7015592) to run robo test from Console Clould Google?


Thanks.
 

Doug Stevenson

unread,
Jul 7, 2016, 4:53:24 PM7/7/16
to Firebase Google Group
Kim,

Sorry you're having problems with the Robo test.  Can you tell me exactly you how you're building the APK that you're trying to upload and test?

You can use Firebase Test Lab for Android without integrating Firebase into your app at all, so you don't need to worry about google-services.json or any other Firebase feature (unless you do want to use them, and that's fine as well).  The only thing Test Lab needs is a valid APK to install and run on our devices.

Doug

kim hong seok

unread,
Jul 7, 2016, 11:01:19 PM7/7/16
to Firebase Google Group
thank your reply

about your question
I put my answer to your question in red

how you're building the APK that you're trying to upload and test?
- > current my APK is not release to Play strore because that is preload APK on some device 
     also it is possible to install and run APK.
 
     please let me share you my 2 situations to run robo test with apk(I'll call the apk as Test.APK)
     1'st situation :  Test.APK is already  preload to your some devices from LG , however the preload APK might be old version from 2 years ago (I hope to run robo test with newest  version Test.APK on your devices(from LG))
     2'nd situation :  TestAPK is not installed to your another deivces from Samsung or Nexus,  I hope to run robo test with my Test.APK on your devices(from Samsung  or Nexus)
if you need another information  please let me know that!!

if I use robo test with console google cloud
I don't need to set  "google-services.json"(Copy config file) and   insert "classpath 'com.google.gms:google-services:3.0.0' etc" (Add to build.gradle)
is this right?

Doug Stevenson

unread,
Jul 8, 2016, 2:42:11 AM7/8/16
to fireba...@googlegroups.com
It shouldn't matter at all how your APK is distributed or preloaded.  What matters is *how* your APK is built and the properties of the APK itself.  There are a number of reason why you may have seen that error message:

- It could be a transient error that goes away later.
- It could be a problem with the console when a tab is open for a very long time.  Sometimes reloading the tab will help.
- There was a network error while trying to upload the APK.
- The APK you're trying to upload is not a valid zip archive.
- The APK does not have a valid manifest
- The APK manifest does not declare a launcher activity.
- The APK declares a permission that is not allowed by Test Lab (for security reasons).
- The APK does not pass a malware security scan.

The contents of the APK are very important, which is why I'm asking how you build it.

The link you provided about google-services.json does not apply to Test Lab.  That only matters if you are using other Firebase components at runtime within your app.  Test Lab doesn't operate inside your app.  It operates outside your app by executing instrumentation tests against it or manipulating it during a Robo test as if a user was operating it.

Please check that your APK is being built correctly and does not have any potential security problems, and try to upload it again.  If you are still having problems, please provide your project id so we can look at the logs on our side.

Doug

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/MY8mpAWz5og/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5c1a19bb-cd73-44ed-9a43-8a707d01c8df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kim hong seok

unread,
Jul 10, 2016, 12:30:54 AM7/10/16
to Firebase Google Group
thanks your reply

Q1)
I tried to run again with my 3 version APK
but they was failed all of it
the error massege like this
 -> We experienced an error while validating your APK. Please verify the APK is correct and upload again.  
my project id is "TestProjectKHS" could you look at the log?

Q2)
you mentioned like this
-> That only matters if you are using other Firebase components at runtime within your app.
please let me know "other Firebase components" is what?
can you share the components infromamtion(like a names) for exmple?

Doug Stevenson

unread,
Jul 11, 2016, 8:15:23 PM7/11/16
to fireba...@googlegroups.com
For your second question, you can see all the Firebase features here:


Again, you don't have to be using any of them in order to test with Test Lab, and there is no requirement for a google-services.json with Test Lab.

Doug

Yinfu Chen

unread,
Jul 12, 2016, 9:02:34 PM7/12/16
to Firebase Google Group
Hi Hong Seok, 

Regarding the message "We experienced an error while validating your APK. Please verify the APK is correct and upload again."  It appears that your app manifest did not declare a launcher activity. Robo tests require a launcher activity in order to launch to app to be tested. Please try that and let me know if you receive the same error.

Best,
Yinfu
Reply all
Reply to author
Forward
0 new messages