I'm getting reports of my new app crashing from some users.
java.lang.NoClassDefFoundError: com.actionbarsherlock.R$layout
at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1039)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:919)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:853)
at com.actionbarsherlock.app.SherlockActivity.setContentView(SherlockActivity.java:218)
at com.androidProjects.personal.GAAClubFinderActivity.onCreate(GAAClubFinderActivity.java:58)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.access$2300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
I have no idea what could be causing this because the same version is working fine on my own phone using Android 4.0.4.
Is there some issues with ABS and older version of the Android OS?
I have decalred my min and target versions as follows:
<uses-sdk android:targetSdkVersion="15" android:minSdkVersion="7"/>
Any help would be greatly appreciated.
ActionBar does not exist for old Android SDK versions. See here: http://developer.android.com/guide/topics/ui/actionbar.html
Therefore you can't run your app in the Android lover then 3.0 when you use ActionBar.
MinSdk version doesn't check usages in the compile time because you can programmatically create if/switch and call different code for different platforms.
Related
I am getting the following exception at runtime using the latest Deeplearning4j release. The exception cause is listed below. I do not get the full trace so not sure which class it is not finding. I am not sure where the log can be found for that exception in hopes of seeing the full trace. It is not in my app server log. I am running using Java 1.8 using the Wildfly app server on Windows 10 prof.
Thanks for any help.
-Tony
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.nd4j.linalg.factory.Nd4j
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetworkHelper(ModelSerializer.java:283)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:238)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:222)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:380)
at com.myuniportal.service.MyUniPortalMapMobileAIResource.(Unknown Source)
at com.myuniportal.service.MapAIApplication.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)
... 36 more
I fixed this by copying dlls from jars to a folder pointed to in the path.
I hope this answer helps others.
-Tony
Deeplearning4j maintainer here. You should never need to do this and I hope folks don't actually do this in the future. Javacpp (underlying component for native components) manages all of this in a .javcpp folder and already handles this.
If you have to do something more than add the dependency to your pom.xml/gradle file, you likely did something wrong.
The jars already contain the dlls and load them automatically.
I solved the problem (with out unjaring dlls) and was able to get a program running in eclipse. I am working on getting a servlet to run right now
Again, many thanks.
I am trying to integrate twilio android SDK in android Studio for implementing the outgoing call.Its Working fine in Eclipse but after I added the TwilioClientService in manifest.xml file, App is crashing in Android Studio so that i could not able to connect the call.Could you please any one tell the solution for this.
This is the Error I got,
STACK_TRACE=java.lang.UnsatisfiedLinkError:
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.iw.infowave-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64,
/system/lib64]]] couldn't find "libtwilio-native.so" at
java.lang.Runtime.loadLibrary(Runtime.java:366) at
java.lang.System.loadLibrary(System.java:988) at
com.twilio.client.impl.useragent.UserAgent.(UserAgent.java:16)
at
com.twilio.client.impl.CallControlManager.initialize(CallControlManager.java:189)
at
com.twilio.client.impl.CallControlManager.getInstance(CallControlManager.java:131)
at
com.twilio.client.impl.TwilioClientServiceImpl.initialize(TwilioClientServiceImpl.java:169)
at
com.twilio.client.TwilioClientService.onCreate(TwilioClientService.java:50)
at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
at android.app.ActivityThread.access$1800(ActivityThread.java:151)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
at android.os.Handler.dispatchMessage(Handler.java:102) at
android.os.Looper.loop(Looper.java:135) at
android.app.ActivityThread.main(ActivityThread.java:5254) at
java.lang.reflect.Method.invoke(Native Method) at
java.lang.reflect.Method.invoke(Method.java:372) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaenter code
hereller.run(ZygoteInit.java:903) at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Twilio developer evangelist here.
It looks like you haven't imported the library into your project.
See where it says:
couldn't find "libtwilio-native.so" at
java.lang.Runtime.loadLibrary(Runtime.java:366) at
You need to have the twilioclient-android.jar in your libs folder and have it properly referenced.
If you want to see how to do that, the easiest way is to follow the docs here or have a look at this sample project I put together here.
UPDATE
Also, as a side-note, you have to absolutely make sure the .so files are accessible by your project. If you're using Gradle, all you need to do is create a new folder under src/main called jniLibs and add all the contents of the lib folder there. This will make sure all the native SDK files are correctly referenced. You can see that on the sample project i posted earlier
Let me know how it goes.
I'm new to this. I generated a new project using libgdx project generator, all worked fine. Then I tried to add liquidfun extension to the library using the following tutorial: https://github.com/finnstr/gdx-liquidfun-extension/wiki/Setup.
It compiles all the dependencies are seen in the editor but at runtime I get this error.
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/badlogic/gdx/physics/box2d/World; 10-09 10:29:50.698
12790-12895/com.mygdx.game.android E/AndroidRuntime: at
com.mygdx.game.MyGdxGame.createBox2DWorld(MyGdxGame.java:87)
Caused
by: java.lang.ClassNotFoundException: Didn't find class
"com.badlogic.gdx.physics.box2d.World" on path: DexPathList[[zip file
"/data/app/com.mygdx.game.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mygdx.game.android-1/lib/arm,
/vendor/lib, /system/lib]]
I am concered of this part of the tutorial which is made for eclipse. I don't know how to configure this in Android Studio.
To do so you should right click on android project and select
Properties -> Java Build Path -> Add external Jar and pick
core/libs/gdx-liquidfun.jar. Last step is to check this library in
Order and export.
Note: I also tried to load the native libraries and they throw no error.
static {
System.loadLibrary("gdx-liquidfun");
System.loadLibrary("gdx-box2d");
}
I figured it out. I had to right click the jar and Add As Library. I had to copy the jar to android/libs. The one from core/libs didn't have the option to Add as Library
I have recently upgraded my project to richfaces 4 from richfaces3 and also JSF 1 is been upgraded to JSF 2. I find no issues during the build and build is successful. But when I am trying to deploy application using JBOSS 6 I get below error:
Caused by: java.lang.NoSuchMethodException: org.apache.myfaces.custom.aliasbean.AliasBeanTagHandler.<init>(javax.faces.view.facelets.ComponentConfig)
at java.lang.Class.getConstructor0(Class.java:2892) [:1.7.0_72]
at java.lang.Class.getConstructor(Class.java:1723) [:1.7.0_72]
at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:290) [:2.0.3-]
... 93 more
I have tried a lots of things but nothing worked. Any kinda help would be much appreciated. Thanks a lot in advance
I am developing a grails application which has codenarc plugin. And also I am using hudson build tool. I am integrating the application with hudson build tool. In the hudson I have configured violation plugin. But when I build the app I am getting following error.
hudson.util.IOException2: Cannot parse CodeNarcReport.xml
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:64)
at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:189)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:116)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
at hudson.FilePath.act(FilePath.java:757)
at hudson.FilePath.act(FilePath.java:739)
at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:622)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:579)
at hudson.model.Build$RunnerImpl.post2(Build.java:156)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:548)
at hudson.model.Run.run(Run.java:1386)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.lang.NullPointerException
at hudson.plugins.violations.model.Violation.compareTo(Violation.java:192)
at hudson.plugins.violations.model.Violation.compareTo(Violation.java:8)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)
at hudson.plugins.violations.model.FullFileModel.addViolation(FullFileModel.java:24)
at hudson.plugins.violations.types.codenarc.CodenarcParser.parseFileElement(CodenarcParser.java:90)
at hudson.plugins.violations.types.codenarc.CodenarcParser.execute(CodenarcParser.java:47)
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:59)
... 16 more
Can anyone please help me to fix this issue?
Grails version : 1.3.7
Hudson version : 1.398
By updating violation plugin to 0.7.8 snapshot version fixed the issue. Download link
I recommend asking CodeNarc questions on the CodeNarc mailing list.
Also, be aware the the Hudson/Jenkins plugin usually has an older version of CodeNarc bundled with it. It's not maintained by the CodeNarc team. I recommend sticking with the Grails plugin, which is maintained by the team.
Thanks,
Hamlet (CodeNarc developer)