我正在尝试将Pushwoosh安装到我的React Native应用中,并且出现以下错误:
/**
* d_path - return the path of a dentry
* @path: path to report
* @buf: buffer to return value in
* @buflen: buffer length
*
* Convert a dentry into an ASCII path name. If the entry has been deleted
* the string " (deleted)" is appended. Note that this is ambiguous.
*
* Returns a pointer into the buffer or an error code if the path was
* too long. Note: Callers should use the returned pointer, not the passed
* in buffer, to use the name! The implementation often starts at an offset
* into the buffer, and may leave 0 bytes at the start.
*
* "buflen" should be positive.
*/
char *d_path(const struct path *path, char *buf, int buflen)
{
char *res = buf + buflen;
struct path root;
int error;
/*
* We have various synthetic filesystems that never get mounted. On
* these filesystems dentries are never used for lookup purposes, and
* thus don't need to be hashed. They also don't need a name until a
* user wants to identify the object in /proc/pid/fd/. The little hack
* below allows us to generate a name for these objects on demand:
*
* Some pseudo inodes are mountable. When they are mounted
* path->dentry == path->mnt->mnt_root. In that case don't call d_dname
* and instead have d_path return the mounted path.
*/
if (path->dentry->d_op && path->dentry->d_op->d_dname &&
(!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root))
return path->dentry->d_op->d_dname(path->dentry, buf, buflen);
rcu_read_lock();
get_fs_root_rcu(current->fs, &root);
error = path_with_deleted(path, &root, &res, &buflen);
rcu_read_unlock();
if (error < 0)
res = ERR_PTR(error);
return res;
}
对于React Native和Android开发,我还很陌生-所以我不太确定这里发生了什么。
我的主要build.gradle文件如下所示:
> Could not resolve com.android.tools.build:gradle:2.3.3.
> Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom'.
> Could not GET 'https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom'.
> maven.google.com: nodename nor servname provided, or not known
> Could not resolve com.google.gms:google-services:4.2.0.
Required by:
project :pushwoosh-react-native-plugin
> Could not resolve com.google.gms:google-services:4.2.0.
> Could not get resource 'https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom'.
> jcenter.bintray.com
我按照github上的说明进行操作。
有人可以向我解释这里到底是什么问题吗?
答案 0 :(得分:0)
不确定这是否有帮助,但是我从jitpack中得到了相同的错误(而不是在对项目进行任何相关更改后突然出现)。
我要做的是将项目级别build.gradle从maven {url“ https://jitpack.io”}更改为{url“ https://www.jitpack.io”}