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

从源代码编译提示缺少类: [MissingClass] android:name=".TouchHelperServiceReceiver" #84

Open
q2333gh opened this issue Oct 31, 2023 · 1 comment

Comments

@q2333gh
Copy link

q2333gh commented Oct 31, 2023

btwl@btwl-virtual-machine ~/c/Android-Touch-Helper (master) [1]> ./gradlew build

> Task :app:lintDebug FAILED
Lint found 2 errors, 101 warnings. First failure:

/home/btwl/code/Android-Touch-Helper/app/src/main/AndroidManifest.xml:50: Error: Class referenced in the manifest, com.zfdang.touchhelper.TouchHelperServiceReceiver, was not found in the project or the libraries [MissingClass]
            android:name=".TouchHelperServiceReceiver"
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "MissingClass":
   If a class is referenced in the manifest or in a layout file, it must also
   exist in the project (or in one of the libraries included by the project.
   This check helps uncover typos in registration names, or attempts to rename
   or move classes without updating the XML references
   properly.

   https://developer.android.com/guide/topics/manifest/manifest-intro.html


The full lint text report is located at:
  /home/btwl/code/Android-Touch-Helper/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintDebug'.
> Lint found errors in the project; aborting build.
  
  Fix the issues identified by lint, or create a baseline to see only new errors:

  android {
      lint {
          baseline = file("lint-baseline.xml")
      }
  }

  
  For more details, see https://developer.android.com/studio/write/lint#snapshot

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 11s
72 actionable tasks: 1 executed, 71 up-to-date
@jiangkerLove
Copy link

jiangkerLove commented Nov 17, 2023

Android-Touch-Helper/app/src/main/AndroidManifest.xml 中 android:name=".TouchHelperServiceReceiver" 改成 (android:name=".UserPresentReceiver")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants