小编Moh*_*ini的帖子

Firebase App Distribution 找到了超过 1 个此变体的输出文件

我正在将基于Google 文档的“Firebase App Distribution”添加到我的 Android 应用程序中,但在运行appDistributionUploadReleaseGradle 任务后,我收到此错误消息:

10:18:03 PM: Executing task 'appDistributionUploadRelease'...

Executing tasks: [appDistributionUploadRelease] in project C:\Users\mohsenoid\development\***\***-Android


> Task :app:appDistributionUploadRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:appDistributionUploadRelease'.
> App Distribution found more than 1 output file for this variant. Please contact firebase-support@google.com for help using APK splits with App Distribution.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug …
Run Code Online (Sandbox Code Playgroud)

android firebase firebase-app-distribution

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

如何为具有私有 git 子模块的私有存储库设置 GitHub Actions CI 服务?

我正在为具有多个 git 子模块的 Android 项目私有存储库设置 GitHub 操作,我的工作流程甚至无法通过结帐步骤!

我知道这可能是身份验证问题,但不知道如何解决!我想知道由于 CI 是用于 GitHub 的,它可以访问公司的所有存储库,并且不需要任何令牌或哈希键。

这是 yml 文件中的结帐步骤:

 - name: Chrckout repo
   uses: actions/checkout@v1
   with:
    submodules: true
    lfs: true
Run Code Online (Sandbox Code Playgroud)

这是日志的某些部分(抱歉,由于项目机密性,我不得不混淆某些部分,但它应该是可读的):

2019-09-29T13:03:39.9185317Z ##[group]Run actions/checkout@v1
2019-09-29T13:03:39.9272863Z with:
2019-09-29T13:03:39.9273270Z   submodules: true
2019-09-29T13:03:39.9273443Z   lfs: true
2019-09-29T13:03:39.9273636Z ##[endgroup]
2019-09-29T13:03:40.9117862Z Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
2019-09-29T13:03:40.9118799Z ##[add-matcher]/home/runner/work/_temp/git_edd66dd0-526a-44d1-97ad-a70a018bc61e.json
2019-09-29T13:03:40.9137013Z Syncing repository: ***/***-Android
2019-09-29T13:03:40.9145133Z ##[command]git version
2019-09-29T13:03:40.9145665Z git version 2.23.0
2019-09-29T13:03:40.9146108Z ##[command]git lfs version
2019-09-29T13:03:41.5663318Z git-lfs/2.8.0 (GitHub; linux …
Run Code Online (Sandbox Code Playgroud)

git continuous-integration github git-submodules github-actions

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

Kotlin 中是否有任何方法可以让我将一个范围内的值转换为另一个范围?

我有一个数字范围内的值(例如0..100),我想将其转换为另一个范围(例如 to 0..9)。所以结果将是:

50 -> 4或者100 -> 9……

Kotlin 中是否有任何方法可以在这方面帮助我?

range kotlin

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

如何在我的Kotlin类中创建一个匿名接口实现并使用它?

我怎么能在Kotlin中有类似这样的java代码?即便是IDE也不能完美地将其转换为Kotlin!

/** Defines callbacks for service binding, passed to bindService() */
private ServiceConnection mConnection = new ServiceConnection() {

    @Override
    public void onServiceConnected(ComponentName className,
            IBinder service) {
        // We've bound to LocalService, cast the IBinder and get LocalService instance
        LocalBinder binder = (LocalBinder) service;
        mService = binder.getService();
        mBound = true;
    }

    @Override
    public void onServiceDisconnected(ComponentName arg0) {
        mBound = false;
    }
};
Run Code Online (Sandbox Code Playgroud)

我试过使用inner class但后来我无法像这样使用它:

@Override
protected void onStart() {
    super.onStart();
    // Bind to LocalService
    Intent intent = new Intent(this, …
Run Code Online (Sandbox Code Playgroud)

java android interface kotlin android-studio

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