小编Neb*_*ran的帖子

错误:找不到com.google.gms:google-services:3.0.0

我到处寻找解决这个问题的方法,但找不到令人满意的答案.

我正在尝试使用firebase在我已构建的应用程序上设置登录页面,但是在设置的第一阶段我遇到了标题中的错误.即使我在这个链接上完成了所有步骤,我仍然会收到如下所示的错误:

Error:Could not find com.google.gms:google-services:3.0.0.
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.jar
Required by:
    project :
Run Code Online (Sandbox Code Playgroud)

我还按照firebase说明中的说明下载了所有必要的SDK工具,但仍无法找到名称/ gms下的任何文件夹(看起来没有下载).

任何帮助表示赞赏,谢谢.

android gradle firebase firebase-authentication

3
推荐指数
1
解决办法
9430
查看次数

TypeError:'instancemethod'对象不可迭代(Python)

我对python和线程很陌生。我试图编写一个使用线程和队列的程序,以便使用凯撒密码对txt文件进行加密。当我单独使用加密功能时,加密功能本身可以很好地工作,但是在程序中使用它时出现错误。错误从此行开始:

for c in plaintext:
Run Code Online (Sandbox Code Playgroud)

这是整个代码:

import threading
import sys
import Queue

#argumanlarin alinmasi
if len(sys.argv)!=4:
    print("Duzgun giriniz: '<filename>.py s n l'")
    sys.exit(0)
else:
    s=int(sys.argv[1])
    n=int(sys.argv[2])
    l=int(sys.argv[3])

#Global
index = 0

#caesar sifreleme


#kuyruk deklarasyonu
q1 = Queue.Queue(n)
q2 = Queue.Queue(2000)


lock = threading.Lock()

#Threadler
threads=[]

#dosyayi okuyarak stringe cevirme
myfile=open('metin.txt','r')
data=myfile.read()


def caesar(plaintext, key):
    L2I = dict(zip("ABCDEFGHIJKLMNOPQRSTUVWXYZ", range(26)))
    I2L = dict(zip(range(26), "ABCDEFGHIJKLMNOPQRSTUVWXYZ"))

    ciphertext = ""
    for c in plaintext:
        if c.isalpha():
            ciphertext += I2L[(L2I[c] + key) % 26]
        else: …
Run Code Online (Sandbox Code Playgroud)

python multithreading typeerror caesar-cipher

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