小编Jam*_*s Z的帖子

myfirebasemessaging 服务不可分配给 android.app.service

这是我的清单文件。我在我的应用程序上登录时遇到问题,并且出现此错误。我的 firebase 消息服务不可分配给 android.app.service。可能是什么问题?

<!-- [START firebase_service] -->
    <service android:name=".MyFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <!-- [END firebase_service] -->
    <!-- [START firebase_iid_service] -->
    <service
        android:name=".MyFirebaseInstanceIDService"
        android:enabled="true"
        android:exported="true">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>
Run Code Online (Sandbox Code Playgroud)

android firebase-cloud-messaging

6
推荐指数
1
解决办法
5792
查看次数

如何在 Hive 的所有表中找到特定的列名?

如何在 Hive 的所有表中找到特定的列名称?

我在配置单元中运行了这个查询:(select table_name,column_name from retail.columns where column_name like '%emp%';零售是一个数据库)。

但它给予:

错误失败:SemanticException 第 0 行:-1 找不到表“列”

我尝试查询:(select distinct table_name from default.columns where column_name = 'emp'默认是我的数据库)。但它也给出了错误。

我搜索了这些,得到了我为 SQL 数据库编写的查询。

但我想在 hive 数据库中搜索?如何进入蜂巢?

以前曾问过同样的问题,但我觉得事情可能已经改变,并且可能有直接的解决方案:

如何在 Hadoop/Hive 中搜索具有给定列名的所有表并返回哪些表具有该列名?

在 Hive 中搜索表和列

hadoop hive

6
推荐指数
1
解决办法
2万
查看次数

VSTest 任务不执行为平台 x64 构建的测试 dll

我在 TFS 2017 的构建定义中使用 Visual Studio 测试任务版本 2。一旦构建成功并生成测试 dll,VSTest 任务将无法运行在 x64 平台上构建的测试 dll .我收到以下消息:

测试运行将使用为框架 Framework45 和平台 x86 构建的 DLL。以下 DLL 将不是运行的一部分:“TestDllName.dll”是为 FrameworkCore10 和平台 x64 构建的。

如何解决这个问题?

testing build vstest

6
推荐指数
1
解决办法
1744
查看次数

在运行时动态替换 Lottie 动画中的 Image

我有一个 After Effects 动画,超级简单,一个正方形四处移动(AE 形状)。我使用 Bodymovin 将动画导出为 .json,并在我的项目中使用 Lottie 添加 json 文件。到现在为止还挺好。

问题从这里开始 --> 在运行时,用我在我的项目中也有的图像替换那个“正方形”。因为这个图片可能会发生变化,我无法静态添加到我的AE动画中,所以需要在运行时动态添加。几乎没有关于如何在 Android 中执行此操作的信息?

android lottie-android lottie

6
推荐指数
3
解决办法
1万
查看次数

如何修复 /etc/sudoers:行号附近的语法错误

我是 Ubuntu 新手。当在 Visual Studio Code 中编辑任何内容时,我必须输入密码。因此,我尝试更改 sudoers 文件,但之后我无法找到发生了什么,并且还出现如下错误。

我用命令来改变我

sudo nano -w /etc/sudoers
Run Code Online (Sandbox Code Playgroud)

之后我按了ctrl+x

/etc/sudoers: syntax error near line 26 <<<
sudo: parse error in /etc/sudoers near line 26
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Run Code Online (Sandbox Code Playgroud)

谢谢。

sudo nano sudoers ubuntu-18.04

6
推荐指数
2
解决办法
4万
查看次数

错误类型错误:无法读取未定义的属性“匹配”

npm run build 给出

错误类型错误:无法读取未定义的属性“匹配”。

-  Building for production...
 ERROR  TypeError: Cannot read property 'match' of undefined
TypeError: Cannot read property 'match' of undefined
    at VuetifyLoaderPlugin.apply (/usr/src/app/node_modules/vuetify-loader/lib/plugin.js:28:29)
    at webpack (/usr/src/app/node_modules/webpack/lib/webpack.js:51:13)
    at /usr/src/app/node_modules/@vue/cli-service/lib/commands/build/index.js:192:5
    at new Promise (<anonymous>)
    at build (/usr/src/app/node_modules/@vue/cli-service/lib/commands/build/index.js:191:10)
    at async /usr/src/app/node_modules/@vue/cli-service/lib/commands/build/index.js:88:7
npm ERR! code ELIFECYCLE
npm ERR! errno 1


Below is my package.json dependencies:
"dependencies": {
    "ag-grid-community": "^21.2.2",
    "ag-grid-vue": "^21.2.2",
    "axios": "^0.19.0",
    "core-js": "^2.6.10",
    "csvjson": "^5.1.0",
    "date-fns": "^2.7.0",
    "fabric": "^3.5.0",
    "jquery": "^3.4.1",
    "lodash": "^4.17.15",
    "moment": "^2.24.0",
    "stylus": "^0.54.7",
    "stylus-loader": …
Run Code Online (Sandbox Code Playgroud)

npm vue.js package.json npm-install

6
推荐指数
2
解决办法
1万
查看次数

UnhandledPromiseRejectionWarning: TypeError: 无法读取 antd 和 nextjs 中未定义的属性“startsWith”

我使用所有最新版本的 ant design 设置了我的 nextjs 项目。当我尝试配置next.config.js文件时,会抛出此错误。更具体地说,当我添加 webpack 配置时会发生错误。

 next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
Warning: Built-in CSS support is being disabled due to custom CSS configuration being detected.
See here for more info: https://nextjs.org/docs/messages/built-in-css-disabled

(node:7620) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
(node:7620) [DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: MainTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
(node:7620) [DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: ChunkTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
(node:7620) [DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK] DeprecationWarning: MainTemplate.hooks.hashForChunk …
Run Code Online (Sandbox Code Playgroud)

webpack next.js antd

6
推荐指数
0
解决办法
559
查看次数

无法在 VSCode 中打开 Markdown 预览

正如罐头上所说:command 'markdown.showPreview' not found每次我尝试打开普通文件的预览时都会弹出.md。我尝试卸载所有与 MD 相关的扩展,但无济于事。

markdown visual-studio-code

6
推荐指数
2
解决办法
5907
查看次数

使用“路径”中的导入路径时无法读取未定义的属性“解析”

使用时:

import path from 'path';

path.resolve('/')
Run Code Online (Sandbox Code Playgroud)

我收到标题错误,但是当我使用

require('path').resolve('messages.json'))
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

import { readFile, writeFile } from 'fs/promises';
import { v4 as uuidv4 } from 'uuid';
import path from 'path';

interface MessagesJson {
  messages: Array<{ content: string; id: string }>;
}

export class MessagesRepository {
  async findOne(id: string): Promise<string> {
    return id;
  }

  async findAll(): Promise<any> {
    return null;
  }

  async create(message: any): Promise<any> {
    console.log(' dirname', require('path').resolve('messages.json'));
    console.log(' path.resolve', path.resolve('/'));
    // console.log(' path.resolve', path.resolve(__dirname, '/src'));
    const messages: any = await readFile('src/messages.json', 'utf-8'); …
Run Code Online (Sandbox Code Playgroud)

node.js typescript nestjs

6
推荐指数
1
解决办法
4442
查看次数

由于 SSL 问题,Azure DevOps 部署代理无法连接

由于 SSL 问题,Azure 部署代理几天后不再工作。

我有几台服务器无法再连接到 Azure DevOps。

我发现以下博客应该启用tls 1.2。

https://devblogs.microsoft.com/visualstudio/azure-devops-requires-tls-1-2-on-all-connections-include-visual-studio/

我检查了我们是否启用了正确的安全协议。

C:\azagent\A2> [System.Net.ServicePointManager]::SecurityProtocol
Ssl3, Tls, Tls12
Run Code Online (Sandbox Code Playgroud)

我还按照以下步骤确保在 Windows 寄存器中启用了 TLS。我手动添加了这些值,因为有些值不存在。

Path                                                                                          Name                        Value
----                                                                                          ----                        -----
HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319                                 SystemDefaultTlsVersions    1
HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319                                 SchUseStrongCrypto          1
HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319                                             SystemDefaultTlsVersions    1
HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319                                             SchUseStrongCrypto          1
HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server    Enabled                     1
HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server    DisabledByDefault           0
HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client    Enabled                     1
HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client    DisabledByDefault           0
Run Code Online (Sandbox Code Playgroud)

我在下面发布了日志,因为我不知道发生了什么。还有其他人有什么想法吗?

日志:

[2022-02-05 18:38:37Z INFO AgentProcess] Agent package win-x64.
[2022-02-05 18:38:37Z INFO AgentProcess] Running on Windows (X64).
[2022-02-05 18:38:37Z INFO AgentProcess] RuntimeInformation: Microsoft Windows 6.3.9600.
[2022-02-05 …
Run Code Online (Sandbox Code Playgroud)

azure-devops azure-agent

6
推荐指数
1
解决办法
1万
查看次数