这在特定的API 14和19中并不总是可见.
下面是堆栈跟踪
java.lang.NoClassDefFoundError: roboguice.inject.ContextScopedRoboInjector
at roboguice.RoboGuice.getInjector(RoboGuice.java:197)
at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90)
at com.bnmcombines.galleryflavors.Launcher.onCreate(Launcher.java:71)
at android.app.Activity.performCreate(Activity.java:5343)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
at android.app.ActivityThread.access$900(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5345)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
at dalvik.system.NativeStart.main(Native Method)
Run Code Online (Sandbox Code Playgroud)
RoboGuice 3.0已经记录了一个问题:https://github.com/roboguice/roboguice/issues/328
但没有回应,我们目前被阻止.
这次我更仔细地提到了MultiDex Document,并将我更新AndroidManifest.xml到了我错过的下面
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud) 尝试使用构建模式运行iOS风格时遇到的问题
/Labs/Workspace/Flutter/camp-flutter/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error:
'shared_preferences/SharedPreferencesPlugin.h' file not found
#import <shared_preferences/SharedPreferencesPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Run Code Online (Sandbox Code Playgroud)
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.5 18F132, locale en-IN)
[?] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[?] Xcode - develop for iOS and macOS (Xcode 10.3)
[?] iOS tools - develop for iOS devices
[?] Android Studio (version 3.4)
[?] VS Code (version 1.36.1)
[?] …Run Code Online (Sandbox Code Playgroud) 我刚刚使用bower with below命令在我的项目中添加了jQCloud2库
bower install jqcloud2 --save
Run Code Online (Sandbox Code Playgroud)
jQCloud - http://mistic100.github.io/jQCloud/demo.html
在头部添加了它的css和javascript文件
下面是我正在使用的一小段代码
<div id="cloud">
</div>
<script>
$(function(){
var words = [
{text: "Lorem", weight: 13},
{text: "Ipsum", weight: 10.5},
{text: "Dolor", weight: 9.4},
{text: "Sit", weight: 8},
{text: "Amet", weight: 6.2},
{text: "Consectetur", weight: 5},
{text: "Adipiscing", weight: 5}
];
$('#cloud').jQCloud(words);
});
</script>
Run Code Online (Sandbox Code Playgroud)
我正在使用的库
我没有看到任何代码通过jQCloud库生成,这是我一直在做的错误.非常感谢您的帮助