Android-Touch-Helper icon indicating copy to clipboard operation
Android-Touch-Helper copied to clipboard

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

Open q2333gh opened this issue 2 years ago • 1 comments

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

q2333gh avatar Oct 31 '23 03:10 q2333gh

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

jiangkerLove avatar Nov 17 '23 03:11 jiangkerLove