今天突然,当我试图在Android工作室中运行我的应用程序时出现错误.
它是:
Error: Could not find play-services-tasks.aar (com.google.android.gms:play-services-tasks:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks/15.0.1/play-services-tasks-15.0.1.aar
Run Code Online (Sandbox Code Playgroud)
我没有更改gradle文件中的任何内容,但突然出现了.我的上一个版本在几分钟前成功执行.
为什么它找不到 com.google.android.gms中的play-services-tasks.aar哪一部分:play-services-tasks:15.0.1
采取的步骤:
我检查了是否在gradle文件中包含了所有存储库,到目前为止所有存储库都是正确的.
为什么这个错误会突然发生?
我还将此链接https://jcenter.bintray.com/com/google/android/gms/play-services-tasks/15.0.1/play-services-tasks-15.0.1.aar复制到浏览器中,但它正在运行很好,就是我得到了"文件下载"对话框.
我的Gradle文件
应用级别
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "mekanic24assistantapplication.heba.mekanic24.com.mekanic24assistantapplication"
minSdkVersion 14
targetSdkVersion 26
versionCode 13
versionName "2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
incremental true
javaMaxHeapSize "4g"
}
// err Android Gradle Duplicate files copied in …Run Code Online (Sandbox Code Playgroud)android gradle maven google-play-services android-gradle-plugin
我正在尝试从 Android 中的 URL 进行应用程序链接,即单击相应链接时直接打开应用程序,而不显示意图选择器的建议(应用程序尚未在 Play 商店中发布)
尽管我的所有配置都是正确的...直接应用程序链接不起作用,只有我在建议中获取应用程序名称
我还尝试使用来自 google 的应用程序链接验证器。
它有一个奇怪的问题
在最初的尝试中,它显示为 No app deep linking permission found for app.glowify.glowify at admin.glowify.com.
单击“测试语句”按钮 2 或 3 次后,我收到“授予深度链接”
因此,我使用 JSON 比较工具将 URL 中的 json 与“生成语句”中的 json 以及链接https://admin.glowify.app/.well-known/assetlinks.json中上传的 json 进行了交叉检查 ,他们确认两者内容相同
但应用程序链接仍然没有直接打开应用程序。
所以我再次检查我的清单文件
这是:
<activity
android:name=".ui.entry.EntryActivity"
android:screenOrientation="portrait">
<intent-filter android:label="Glowify" android:autoVerify="true" >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="admin.glowify.app"
android:pathPrefix="/password/verification"
android:scheme="http" />
<data
android:host="admin.glowify.app"
android:pathPrefix="/password/verification"
android:scheme="https" />
<data
android:host="admin.glowify.app"
android:pathPrefix="/room"
android:scheme="http" /> …Run Code Online (Sandbox Code Playgroud) 我们正在开发一个视频流网站
为此,我们想使用 Amazon S3 存储
但我无法理解定价结构。价格计算器也很混乱
请告诉下面计算的费用是多少
100 个通过 S3 Api 上传的视频..每个大小为 500 MB。(伦敦地区)
=> So 100 x 500 = ~ 5GB storage used
Run Code Online (Sandbox Code Playgroud)
每个视频请求 (GET) 1000 次
=> 100 * 1000 = 100,000 GET requests
Run Code Online (Sandbox Code Playgroud)
每个视频都被观看了 1000 次
=> So (500 x 1000) x 100 = ~ 5 TB bandwidth used
Run Code Online (Sandbox Code Playgroud)
现在请说要花多少钱?逐步推算定价
我正在创建一个 Android 应用程序,我需要拖动和移动功能。因此,为此,我找到了一个名为“Advanced RecyclerView”的库。
所以我尝试使用 Gradle for Android 添加上述库。
这些行是:
dependencies {
implementation ('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar'){
transitive=true
}
}
Run Code Online (Sandbox Code Playgroud)
我的问题
添加这些行后,我在 Gradle Build 上收到以下错误:
错误:找不到 com.android.support:recyclerview-v7:27.0.0。要求: Nuvo_Rider:app:unspecified Nuvo_Rider:app:unspecified > com.l4digital.fastscroll:fastscroll:1.0.4 Nuvo_Rider:app:unspecified > com.android.support:design:25.3.1
请从 Android SDK 管理器安装 Android 支持存储库。打开Android SDK管理器
我的解决步骤
我尝试更改compileSDKversion为 27 并添加了 recyclerview.V27.0.2,但找不到解决方案。
我的摇篮:
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
apply plugin: 'com.neenbedankt.android-apt'
def AAVersion = '4.2.0'
def AndroidSupportVersion = '25.3.1'
buildscript {
repositories { …Run Code Online (Sandbox Code Playgroud) java android gradle android-gradle-plugin android-recyclerview
我正在Android中开发语音识别应用程序。使用Google Cloud Speech API和Firebase Cloudstore(用于数据库)
在构建项目时,我会遵循以下错误::
Error: Program type already present: com.google.api.Advice$1
Run Code Online (Sandbox Code Playgroud)
我不知道该如何解决
我
在stackoverflow中搜索的步骤发现了类似的问题,但对于我的问题却没有
也就是说,我不知道需要排除哪些软件包来解决依赖冲突
请帮我
我的摇篮
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.google.cloud.examples.speechrecognition"
minSdkVersion 23
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations {
compile.exclude group: 'com.google.protobuf', module: 'protobuf-lite'
}
// exclude files that are not needed from the cloud …Run Code Online (Sandbox Code Playgroud) android gradle firebase android-gradle-plugin google-speech-api
我的项目有 3 个模块
include ':app'
include ':videograbber'
include ':audiograbber'
Run Code Online (Sandbox Code Playgroud)
现在我想为Videograbber模块生成签名的APK
当我在 Android Studio 中使用“生成签名 APK(应用程序包)”时,它直接生成“应用程序”,而不询问任何选择屏幕
我不知道如何为其他模块生成
我读过这个问题:Android Studio: Multiple APKs for Multiple Modules
但它只有基于 CLI 的解决方案。我需要通过工作室来做
请帮我
在我的flutter应用程序中,当我尝试热重载或热重启时,过程完成后,重新加载的屏幕显示一秒钟,然后变成全白
仅显示右上角的调试横幅
控制台中没有错误。它只是说重新启动应用程序...
我需要停止并重新运行应用程序!
为什么 ?
我正在使用自动路线和 River pod、fast_i18n 进行本地化
我什至不知道问题出在哪里以及如何解释?
分享要点中的一些代码
https://gist.github.com/RageshAntony/2288a47a8fdc24af1e570a0c7cb9ed08
其他项目运行没有问题
我目前正在学习 spring boot 、 hibernate 和 Spring Boot JPA
我为辅导中心和机构开发了一个课堂应用程序。
其中,学生在同一所学院注册了多个课程
学生实体类:
@Entity
@Table(name = "student")
public class Student {
private String name;
private String dob;
private String gender;
private String address;
private String email;
private Integer mobile;
private String joined;
private Integer instID;
@Id
private String studentid;
getters and setters()....
}
Run Code Online (Sandbox Code Playgroud)
课程表实体类
@Entity
@Table(name = "courses")
public class Course {
private String name;
private String description;
private String logo;
private String start;
private String end;
private Integer fee;
@Id …Run Code Online (Sandbox Code Playgroud) 我正在学习KMM。我现在正在 iOSMain 和 Android main 中设计一个通用的位置获取
我的问题是,我不知道在 iOSMain 中将 Swift 映射到 Kotlin
例如,
获取位置的 Swift 代码是
var locationManager = CLLocationManager()
locationManager.requestWhenInUseAuthorization()
var currentLoc: CLLocation!
if(CLLocationManager.authorizationStatus() == .authorizedWhenInUse ||
CLLocationManager.authorizationStatus() == .authorizedAlways) {
currentLoc = locationManager.location
print(currentLoc.coordinate.latitude)
print(currentLoc.coordinate.longitude)
}
Run Code Online (Sandbox Code Playgroud)
Kotlin 端实现:
在上面的代码中:
如何在 Kotlin 代码中使用 Swift 的.authorizedWhenInUseand .authorizedAlways?
并且 in currentLoc.coordinate.longitude、 thelongitude和latitude没有解决。为什么 ?
请帮我
我是 Stripe,用于使用 Stripe Connect 存储资金并将资金转移给卖家
我的问题是,当我尝试将资金从我的 Stripe 帐户转移到连接的帐户(资金处于测试模式)时,出现以下错误
curl https://api.stripe.com/v1/transfers -u sk_test_gjcwEVcKNBSBPQZxk9GdgwkX: -d amount=100 -d currency=gbp -d destination=acct_1EMBnXEZ0uftLeW4 -d transfer_group=ORDER_95
{
"error": {
"code": "balance_insufficient",
"doc_url": "https://stripe.com/docs/error-codes/balance-insufficient",
"message": "You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.",
"type": "invalid_request_error"
}
}
Run Code Online (Sandbox Code Playgroud)
我的作品 ::
所以尝试了我在 stackoverflow 中找到的解决方案。我在测试模式下添加了英镑 a 和美元的金额
添加 TEST 数量后,我仍然遇到相同的错误。我也试过美元
请帮我解决这个问题。
android ×6
gradle ×4
kotlin ×2
amazon-ec2 ×1
amazon-s3 ×1
dart ×1
deep-linking ×1
firebase ×1
flutter ×1
google-play ×1
hibernate ×1
ios ×1
java ×1
jpa ×1
maven ×1
riverpod ×1
spring ×1
spring-boot ×1
swift ×1