小编Sid*_*awi的帖子

uses-sdk:minSdkVersion 16 不能小于库中声明的版本 23

我想使用颤振包“audioplayers”但是当我运行我的代码时出现此错误

C:\Users\Utilisateur\AndroidStudioProjects\xylophone_flutter\android\app\src\debug\AndroidManifest.xml Error:
    uses-sdk:minSdkVersion 16 cannot be smaller than version 23 declared in library [:audioplayers] C:\Users\Utilisateur\AndroidStudioProjects\xylophone_flutter\build\audioplayers\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
    Suggestion: use a compatible library with a minSdk of at most 16,
        or increase this project's minSdk version to at least 23,
        or use tools:overrideLibrary="xyz.luan.audioplayers" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : …
Run Code Online (Sandbox Code Playgroud)

android kotlin flutter

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

Django Celery Redis

我有这个错误A rediss:// URL must have parameter ssl_cert_reqs and this must be set to CERT_REQUIRED, CERT_OPTIONAL, or CERT_NONE

设置

CELERY_BROKER_URL = os.environ.get('REDIS_URL', "redis://localhost:6379")
CELERY_RESULT_BACKEND = os.environ.get('REDIS_URL', "redis://localhost:6379")
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
Run Code Online (Sandbox Code Playgroud)

芹菜.py

from __future__ import absolute_import, unicode_literals
from celery import Celery
import os, ssl

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproj.settings')

app = Celery(
'myproj',
broker_use_ssl = {
    'ssl_cert_reqs': ssl.CERT_NONE
})

app.config_from_object('django.conf:settings', namespace="CELERY")

app.autodiscover_tasks()
Run Code Online (Sandbox Code Playgroud)

我将 ssl_cert_reqs 的值更改为不同的值“none”,“cert_required”,...,但什么也没有,当我使用 rediss:// 而不是 redis:// 时总是出现相同的错误。

django heroku redis django-celery

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

标签 统计

android ×1

django ×1

django-celery ×1

flutter ×1

heroku ×1

kotlin ×1

redis ×1