English 中文(简体)
AppCenter Building: Project{project-name} at : is no Anders Project or Building edition has not been set overe. 空档
原标题:AppCenter Build: Project {project-name} at : is either no Android app project or build version has not been set to override. Skipping

I m really confused at AppCenter Build s behavior. I successfully created a GitHub Action to build an Android project but when I point AppCenter to that repository, I get the following:

<编码> 安妮多米1项目:要么没有安乐器项目,要么没有建筑版本。 传真:

...where "AndroidDummy1" is the test project I m working with, a very simple one-screen app just to debug and test the AppCenter build process. More of the log looks like this:

Welcome to Gradle 8.2!

Here are the highlights of this release:
 - Kotlin DSL: new reference documentation, assignment syntax by default
 - Kotlin DSL is now the default with Gradle init
 - Improved suggestions to resolve errors in console output

For more details see https://docs.gradle.org/8.2/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
Gradle 8.2

> Configure project :
Resolved com.android.application:com.android.application.gradle.plugin:8.2.0 in detachedConfiguration1 
Resolved org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.9.0 in detachedConfiguration2 
Resolved com.android.application:com.android.application.gradle.plugin:8.2.0 in :classpath 
Resolved org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.9.0 in :classpath 
Project AndroidDummy1 at : is either no Android app project or build version has not been set to override. Skipping...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project  AndroidDummy1 .
> Could not resolve all files for configuration  :classpath .
   > Could not resolve com.android.tools.build:gradle:8.2.0.
     Required by:
         project : > com.android.application:com.android.application.gradle.plugin:8.2.0
      > No matching variant of com.android.tools.build:gradle:8.2.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute  org.gradle.plugin.api-version  with value  8.2  but:
          - Variant  apiElements  capability com.android.tools.build:gradle:8.2.0 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
              - Other compatible attribute:
                  - Doesn t say anything about org.gradle.plugin.api-version (required  8.2 )
          - Variant  javadocElements  capability com.android.tools.build:gradle:8.2.0 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn t say anything about its target Java version (required compatibility with Java 8)
                  - Doesn t say anything about its elements (required them packaged as a jar)
                  - Doesn t say anything about org.gradle.plugin.api-version (required  8.2 )
          - Variant  runtimeElements  capability com.android.tools.build:gradle:8.2.0 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
              - Other compatible attribute:
                  - Doesn t say anything about org.gradle.plugin.api-version (required  8.2 )
          - Variant  sourcesElements  capability com.android.tools.build:gradle:8.2.0 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn t say anything about its target Java version (required compatibility with Java 8)
                  - Doesn t say anything about its elements (required them packaged as a jar)
                  - Doesn t say anything about org.gradle.plugin.api-version (required  8.2 )

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 21s
Error: /Users/runner/work/1/s/gradlew failed with return code: 1
    at ChildProcess.<anonymous> (/Users/runner/work/_tasks/Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4/1.128.0/node_modules/vsts-task-lib/toolrunner.js:569:30)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:920:16)
    at Socket.<anonymous> (internal/child_process.js:351:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:509:12)
##[error]Error: /Users/runner/work/1/s/gradlew failed with return code: 1
##[section]Finishing: Gradle Task

I tried to find the YAML that I assume AppCenter generates, but the closest I could come to seeing what AppCenter fired off was when I looked at the configuration options, and opened the "Export Branch Configuration" window, and looked in the "YAML export configuration" section. I see all the steps that AppCenter uses, but it appears that s a one-way display - I can t alter that script to tweak to find a working solution. And in the "Advanced Build Configuration" section above it, it says this:

“Azure 管道支持比应用中心建设更先进的建筑组合。 如果您的申请结构复杂,或需要使用申请中心不支持的框架进行定制,则尝试建立可能更好地服务于您的申请的管道。

之后,它只剩下一点。

这是否意味着我不得不迁移到乌兰巴斯,以便成功地击退阿伊达中心大楼? 我不理解为什么错误信息(在殖民地)中明显没有提到: :

我在这里失踪了吗?

问题回答

根据文件“Building> Java apps for Anders/strong>”和“

“entergraph

如果你利用JCenter和Bintray资源建造你的AppCenter Anders,那么你建筑中的“格拉斯”任务失败可能与此有关。






相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...