我正在为供应商制作一个库项目,它需要 Android Volley 作为依赖项。我已使用此在 Android Studio 中创建 aar 文件来创建 .aar 文件并将其包含在测试项目中,我正在使用此使用“flatDirs”将本地 .aar 文件添加到 Gradle 构建不起作用。该库链接良好,项目编译没有错误。但在运行时测试应用程序崩溃并表示找不到 Volley
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/volley/toolbox/Volley;
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.volley.toolbox.Volley" on path: DexPathList[[zip file "/data/app/in.gridsync.acttest-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Run Code Online (Sandbox Code Playgroud)
我的库项目的 Gradle 文件是这样的
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled …Run Code Online (Sandbox Code Playgroud) 我最近在Google App Engine上的Nodejs环境中部署了一个应用程序。到昨天为止,当日志开始表现异常时,一切都很好。之前我可以使用一个简单的命令读取日志
gcloud app logs read
Run Code Online (Sandbox Code Playgroud)
现在,日志格式很奇怪,如下所示
2016-07-31 08:02:19 default[2] <JsonPayloadValue additionalProperties: [<AdditionalProperty key: u'source' value: <JsonValue string_value: u'stdout'>>, <AdditionalProperty key: u'container_id' value: <JsonValue string_value: u'67c934710ef37507a56ba3f00fd8d85cd977eb3d386caf6f7599acd9a2684c71'>>, <AdditionalProperty key: u'log' value: <JsonValue string_value: u'Node app is running on port 8080'>>, <AdditionalProperty key: u'container_name' value: <JsonValue string_value: u'/gaeapp'>>]>
唯一相关的部分是,Node app is running on port 8080但是我无法弄清楚为什么它在输出中显示了整个转储类型的日志。