当我尝试在装有Android 28的Pixel 2模拟器上运行Flutter应用程序时遇到此错误。它在前一天工作了,但随后停止了工作。感谢您的帮助。
这是完整的错误消息:
任务':app:preDebugBuild'的执行失败。 Android依赖项'com.android.support:support-core-utils'对于编译(27.1.1)和运行时(28.0.0-rc01)类路径具有不同的版本。您应该通过DependencyResolution手动设置相同的版本
import concurrent.futures
import urllib.request
URLS = ['http://www.foxnews.com/',
'http://www.cnn.com/',
'http://europe.wsj.com/',
'http://www.bbc.co.uk/',
'http://some-made-up-domain.com/']
# Retrieve a single page and report the URL and contents
def load_url(url, timeout):
with urllib.request.urlopen(url, timeout=timeout) as conn:
return conn.read()
# We can use a with statement to ensure threads are cleaned up promptly
with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
# Start the load operations and mark each future with its URL
future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}
for future in concurrent.futures.as_completed(future_to_url):
url = future_to_url[future]
try:
data = future.result()
except Exception as exc:
print('%r generated an exception: %s' % (url, exc))
else:
print('%r page is %d bytes' % (url, len(data)))