小编Lor*_*der的帖子

Gradle构建工具找不到play-services-tasks.aar?为什么?

今天突然,当我试图在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_build_error

我没有更改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

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

尽管 Android 中的所有配置均正确,但直接应用深层链接无法正常工作

我正在尝试从 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)

android deep-linking kotlin android-app-links

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

将 Amazon S3 用于视频流后端需要多少费用?

我们正在开发一个视频流网站

为此,我们想使用 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)

现在请说要花多少钱?逐步推算定价

amazon-s3 amazon-ec2 amazon-web-services

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

如何解决这个 Gradle 构建问题?

我正在创建一个 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

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

如何解决Google API建议,程序类型已存在的问题?

我正在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

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

如何在 Android Studio 中为单独的模块生成签名的 APK?

我的项目有 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 的解决方案。我需要通过工作室来做

请帮我

android gradle google-play android-studio

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

Flutter:热重载/热重启显示带有调试横幅的白屏?

在我的flutter应用程序中,当我尝试热重载或热重启时,过程完成后,重新加载的屏幕显示一秒钟,然后变成全白

仅显示右上角的调试横幅

控制台中没有错误。它只是说重新启动应用程序...

我需要停止并重新运行应用程序!

为什么 ?

我正在使用自动路线和 River pod、fast_i18n 进行本地化

我什至不知道问题出在哪里以及如何解释?

分享要点中的一些代码

https://gist.github.com/RageshAntony/2288a47a8fdc24af1e570a0c7cb9ed08

其他项目运行没有问题

dart flutter flutter-navigation flutter-provider riverpod

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

如何在存储库中使用 Spring Boot JPA / Hibernate 进行内连接?

我目前正在学习 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)

spring hibernate jpa spring-data-jpa spring-boot

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

Kotlin Mutliplatform:将 Swift/Objc 代码映射到 iOSMain 模块中的 Kotlin?

我正在学习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 端实现:

科特林

在上面的代码中:

  1. 如何在 Kotlin 代码中使用 Swift 的.authorizedWhenInUseand .authorizedAlways

  2. 并且 in currentLoc.coordinate.longitude、 thelongitudelatitude没有解决。为什么 ?

请帮我

android ios kotlin swift kotlin-multiplatform

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

为什么即使我在我的账户中添加了测试模式资金,在尝试 Stripe Transfers 时我仍然得到“资金不足”?

我是 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 数量后,我仍然遇到相同的错误。我也试过美元

请帮我解决这个问题。

payment-gateway stripe-payments

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