我正在尝试将图像上传到 firebase 我有以下代码会导致上述错误
//getting the storage reference
StorageReference sRef = storageReference.child(SyncStateContract.Constants.STORAGE_PATH_UPLOADS + System.currentTimeMillis() + "." + getFileExtension(filePath));
我有使用此代码创建的类常量来定义 STORAGE_PATHS_UPLOADS
package com.otemainc.thevendor;
public class Constants {
public static final String STORAGE_PATH_UPLOADS = "uploads/";
public static final String DATABASE_PATH_UPLOADS = "uploads";
}
导致此错误的代码可能有什么问题?
最佳答案
只需删除 SyncStateContract 类,因为它不是必需的,而且是导致错误的原因。
关于java - 找不到符号 STORAGE_PATH UPLOADS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51362271/