Chromium for android

148 views
Skip to first unread message

shuchen

unread,
Sep 6, 2016, 5:32:00 AM9/6/16
to Chromium-dev
Scanning SRC_ROOT2: ...................................................................................................................................................................................................................................................................
Scanning SRC_ROOT2 (Phase 2): ..................................................
Wrote XML report to /home/ts/Browser/src/out/gnbuild/gen/content/public/android/content_java__lint/result.xml
Lint found 3 errors and 0 warnings

Unexpected failure during lint analysis of ContentViewCore.java (this is a bug in lint or one of the libraries it depends on)
TypeSystem.getUnannotatedType(TypeSystem.java:180)->TypeSystem.getParameterizedType(TypeSystem.java:238)->TypeSystem.getParameterizedType(TypeSystem.java:261)->LookupEnvironment.createParameterizedType(LookupEnvironment.java:949)


/tmp/tmpkAXgV8/SRC_ROOT1/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java:651 Overriding method should call `super.closeConnection`: MissingSuperCall [warning]
    public void closeConnection() {
                ~~~~~~~~~~~~~~~~~
/tmp/tmpkAXgV8/SRC_ROOT1/content/public/android/java/src/org/chromium/content/browser/PepperPluginManager.java:96 Must be one or more of: PackageManager.GET_META_DATA, PackageManager.GET_RESOLVED_FILTER, PackageManager.GET_SHARED_LIBRARY_FILES, PackageManager.MATCH_ALL, PackageManager.MATCH_DISABLED_COMPONENTS, PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.MATCH_DEFAULT_ONLY, PackageManager.MATCH_DIRECT_BOOT_AWARE, PackageManager.MATCH_DIRECT_BOOT_UNAWARE, PackageManager.MATCH_SYSTEM_ONLY, PackageManager.MATCH_UNINSTALLED_PACKAGES, PackageManager.GET_DISABLED_COMPONENTS, PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.GET_UNINSTALLED_PACKAGES: WrongConstant [warning]
                PackageManager.GET_SERVICES | PackageManager.GET_META_DATA);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmpkAXgV8/SRC_ROOT1/content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java:181 Must be one or more of: PackageManager.GET_META_DATA, PackageManager.GET_RESOLVED_FILTER, PackageManager.GET_SHARED_LIBRARY_FILES, PackageManager.MATCH_ALL, PackageManager.MATCH_DISABLED_COMPONENTS, PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.MATCH_DEFAULT_ONLY, PackageManager.MATCH_DIRECT_BOOT_AWARE, PackageManager.MATCH_DIRECT_BOOT_UNAWARE, PackageManager.MATCH_SYSTEM_ONLY, PackageManager.MATCH_UNINSTALLED_PACKAGES, PackageManager.GET_DISABLED_COMPONENTS, PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.GET_UNINSTALLED_PACKAGES: WrongConstant [warning]
        final List<ResolveInfo> list = pm.queryIntentServices(intent, PackageManager.GET_SERVICES);
                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Lint found 3 new issues.
 - For full explanation, please refer to out/gnbuild/gen/content/public/android/content_java__lint/result.xml
 - For more information about lint and how to fix lint issues, please refer to https://chromium.googlesource.com/chromium/src/+/master/build/android/docs/lint.md

Traceback (most recent call last):
  File "../../build/android/gyp/lint.py", line 366, in <module>
    sys.exit(main())
  File "../../build/android/gyp/lint.py", line 362, in main
    depfile_deps=classpath)
  File "/home/ts/Browser/src/build/android/gyp/util/build_utils.py", line 537, in CallAndWriteDepfileIfStale
    pass_changes=True)
  File "/home/ts/Browser/src/build/android/gyp/util/md5_check.py", line 87, in CallAndRecordIfStale
    function(*args)
  File "/home/ts/Browser/src/build/android/gyp/util/build_utils.py", line 521, in on_stale_md5
    function(*args)
  File "../../build/android/gyp/lint.py", line 357, in <lambda>
    silent=args.silent),
  File "../../build/android/gyp/lint.py", line 234, in _OnStaleMd5
    raise Exception('Lint failed.')
Exception: Lint failed.


ninja编译时遇到这个错,谁能帮忙看一下怎么解决

Eric Stevenson

unread,
Sep 6, 2016, 10:14:59 AM9/6/16
to lius...@gmail.com, Chromium-dev
GN now fails builds when lint warnings are generated. 

It's best to fix the issue, but if you just want to get your build working you can suppress the warning either directly in code using the @SuppressLint annotation or by adding an entry to the suppressions file (https://cs.chromium.org/chromium/src/build/android/lint/suppressions.xml?dr=C&q=suppressions&sq=package:chromium&l=1). See https://developer.android.com/studio/write/lint.html for more on android lint!

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages