Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failed #10340

Open
Johnyy45 opened this issue Aug 7, 2019 · 2 comments
Open

Compilation failed #10340

Johnyy45 opened this issue Aug 7, 2019 · 2 comments

Comments

@Johnyy45
Copy link

Johnyy45 commented Aug 7, 2019

Hello. I would like to compile APK word press, but Make project failed with error:

The following class loaders are orphaned: ClassLoaderScopeIdentifier.Id{root:C:\Users\userz\WordPress-Android\buildSrc:root-project:project-libs:project-utils:project-WordPressUtils(export)}:org.gradle.api.internal.initialization.loadercache.DefaultClassLoaderCache$CachedClassLoader@6e7bea5b,ClassLoaderScopeIdentifier.Id{root:C:\Users\user\WordPress-Android\buildSrc:root-project:project-libs:project-analytics:project-WordPressAnalytics(export)}:org.gradle.api.internal.initialization.loadercache.DefaultClassLoaderCache$CachedClassLoader@6e7bea5b

I have installed:

  • Android studio 3.4.2
  • git version 2.22.0.windows.1 (with SSH hithub keys)
  • java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11), but in Android Studio - About: JRE build 1.8.0_152_release_1343_b01 amd64
  • gradlew -v

Gradle 5.1.1
Build time: 2019-01-10 23:05:02 UTC
Revision: 3c9abb645fb83932c44e8610642393ad62116807
Kotlin DSL: 1.1.1
Kotlin: 1.3.11
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_221 (Oracle Corporation 25.221-b11)
OS: Windows 7 6.1 amd64

I performed following steps:

  1. Generate and setup SSH keys (with git)
  2. Clone git clone git@github.com:wordpress-mobile/WordPress-Android.git
  3. Renamed gradle.properties-example to gradle.properties
  4. Open in Android Studio, wait for downloading some components and Make Project

And command
gradlew installVanillaDebug

WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Task :libs:networking:WordPressNetworking:compileDebugJavaWithJavac FAILED

Please, help me. It is "Java jokes"?

@Johnyy45 Johnyy45 changed the title Compilation failed [Type] Enhancement Compilation failed Aug 7, 2019
@Johnyy45 Johnyy45 changed the title [Type] Enhancement Compilation failed [Type] Enhancement Compilation failed 'Stats' Aug 7, 2019
@Johnyy45 Johnyy45 changed the title [Type] Enhancement Compilation failed 'Stats' Compilation failed Aug 7, 2019
@designsimply
Copy link
Contributor

Is it possible your gradle version is too far ahead? You may have got a prompt in Android Studio to upgrade but should be ~v4.10.

Aside: right now, a generally good place to ask support-oriented questions like this one about build troubles is in the #mobile channel on Slack (see https://make.wordpress.org/chat/) because you'll likely get a quicker response there! 😊

@stale
Copy link

stale bot commented Sep 19, 2020

This issue has been marked as stale because:

  • It has been inactive for the past year.
  • It isn't in a project or a milestone.
  • It hasn’t been labeled [Pri] Blocker, [Pri] High, or good first issue.

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority during regularly scheduled triage sessions.

@stale stale bot added the [Status] Stale label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants