Renderscrip issue - android

I have a very long renderscript code (about 2000 lines). It is taking along time to process it when trying to run the application (i left it overnight and it took 195 min 6 sec)..
Also when I tried to run it, I get this error:
07-13 09:50:12.924 16359-16374/? E/Icing: Not enough disk space. Will not index.
07-13 09:50:13.142 16465-16480/com.jeanius.renderscript E/bcinfo: Error: input file is not a bitcode file.
07-13 09:50:13.142 16465-16480/com.jeanius.renderscript E/RenderScript: Bitcode is not in proper container format (raw or wrapper)
07-13 09:50:13.197 16465-16465/com.jeanius.renderscript E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jeanius.renderscript/com.jeanius.renderscript.RenderscriptOptimization}: android.renderscript.RSRuntimeException: Loading of ScriptC script failed.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.renderscript.RSRuntimeException: Loading of ScriptC script failed.
at android.renderscript.ScriptC.<init>(ScriptC.java:60)
at com.jeanius.renderscript.ScriptC_cobylaSolver.<init>(ScriptC_cobylaSolver.java:41)
at com.jeanius.renderscript.RenderscriptOptimization.onCreate(RenderscriptOptimization.java:45)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
... 11 more
07-13 09:50:23.275 16518-16598/? E/fb4a(:<default>):MmsConfig: MmsConfig.loadMmsSettings mms_config.xml missing uaProfUrl setting
07-13 09:50:26.869 16625-16737/? E/Icing: Not enough disk space. Will not index.
07-13 09:50:28.142 16625-16737/? E/Icing: Aborting indexing of corpus FC3392E516647AE98EF58CDB1B4F72A158619C1F
07-13 09:50:28.877 16625-16737/? E/Icing: Aborting indexing of corpus FC3392E516647AE98EF58CDB1B4F72A158619C1F
07-13 09:57:55.147 17193-17212/? E/fb4a(:<default>):MmsConfig: MmsConfig.loadMmsSettings mms_config.xml missing uaProfUrl setting
Anybody can help please?

Related

Cordova hello world app crashing

I am new in Android Development. I am working on cordova platform
I have created a sample hello world app and getting this error when i am trying to open it in genymotion. ALthough the app compile succesfully but when i run it in genymotion it just shows the prompt with text "Unfortunately "APP" has stopped."
The Error log shows.
01-12 08:16:04.867 2073-2073/com.technoserves.crudnew D/dalvikvm﹕ Late-enabling CheckJNI
01-12 08:16:06.107 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ Unable to resolve superclass of Lcom/technoserves/crudnew/CordovaApp; (14)
01-12 08:16:06.119 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ Link of class 'Lcom/technoserves/crudnew/CordovaApp;' failed
01-12 08:16:06.135 2073-2073/com.technoserves.crudnew D/AndroidRuntime﹕ Shutting down VM
01-12 08:16:06.135 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xa6142908)
01-12 08:16:06.155 2073-2073/com.technoserves.crudnew E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.technoserves.crudnew/com.technoserves.crudnew.CordovaApp}: java.lang.ClassNotFoundException: Didn't find class "com.technoserves.crudnew.CordovaApp" on path: /data/app/com.technoserves.crudnew-1.apk
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.technoserves.crudnew.CordovaApp" on path: /data/app/com.technoserves.crudnew-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
            at android.app.ActivityThread.access$600(ActivityThread.java:141)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:5041)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
            at dalvik.system.NativeStart.main(Native Method)
01-12 08:16:22.399 2073-2073/com.technoserves.crudnew I/Process﹕ Sending signal. PID: 2073 SIG: 9
I have updated my cordova to resolve but still same error however a few days ago it was working fine and i have build some apps.
First download Cordova jar file from following link:
http://www.java2s.com/Code/JarDownload/cordova/cordova-1.8.1.jar.zip
after that extract the folder and put cordova-1.8.1 inside your libs folder of project in eclipse
And right click on your project--> properties and Select Android from left pane and scroll to bottom remove the cordova library if added.
then clean and build your project.

How to use a fragment from one application in another?

I'm part of a team developing several android applications for a combined system. The system contains administration tools, games and other kind of applications.
The users has requested that they from one application can access the settings of all apps in the system.
My initial idea was that each application could implement a settings fragment following a predefined interface which i then could load to show in my settings application.
I found this post, with a fairly new answer Use external application fragment/activity inside application, and this is how I thought this could be implemented.
I tried implementing the example given by #sandrstar by it gives me the following error
04-24 07:02:36.596 1715-1715/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at dalvik.system.DexFile.defineClass(Native Method)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:211)
at dalvik.system.DexPathList.findClass(DexPathList.java:315)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at dk.giraf.launcher.test.mainapplication.MainActivity.onCreate(MainActivity.java:46)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Is what I am attemping even possible? Other suggestions for implementations are welcome.

Phonegap Android facebook plugin crashes

I am getting the error below when I try to login through facebook plugin for Android.
The app basically crashes "stopped", Any ideas will be appreciated.
ERROR/AndroidRuntime(2008): FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to resume activity {xxx/com.facebook.LoginActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x7f060012
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2742)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2771)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2235)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x7f060012
at android.content.res.Resources.getText(Resources.java:230)
at android.content.res.Resources.getString(Resources.java:314)
at android.content.Context.getString(Context.java:327)
at com.facebook.widget.WebDialog.onCreate(WebDialog.java:189)
at android.app.Dialog.dispatchOnCreate(Dialog.java:355)
at android.app.Dialog.show(Dialog.java:260)
at com.facebook.AuthorizationClient$WebViewAuthHandler.tryAuthorize(AuthorizationClient.java:471)
at com.facebook.AuthorizationClient.tryCurrentHandler(AuthorizationClient.java:214)
at com.facebook.AuthorizationClient.tryNextHandler(AuthorizationClient.java:193)
at com.facebook.AuthorizationClient.authorize(AuthorizationClient.java:121)
at com.facebook.AuthorizationClient.startOrContinueAuth(AuthorizationClient.java:102)
at com.facebook.LoginActivity.onResume(LoginActivity.java:113)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1185)
at android.app.Activity.performResume(Activity.java:5182)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2732)
... 12 more
i kinda resolved it, i deleted the app_id string. turns out facebook plugin doesn't use that.

Flashed 4.2.2 and now my Phonegap app won't run

I re-installed the entire SDK along w/ Eclipse, but no dice. I am absolutely clueless as to how to debug this. I should note that it works fine on my partner's machine, but he uses a 4.1.2 ROM on his phone. Here is the error log: http://pastebin.com/yx2XT8qE
07-13 16:45:23.581: W/dalvikvm(12926): Unable to resolve superclass of Lcom/ahhaproductions/SMSapp/SMSapp; (42)
07-13 16:45:23.581: W/dalvikvm(12926): Link of class 'Lcom/ahhaproductions/SMSapp/SMSapp;' failed
07-13 16:45:23.581: D/AndroidRuntime(12926): Shutting down VM
07-13 16:45:23.581: W/dalvikvm(12926): threadid=1: thread exiting with uncaught exception (group=0x40b6b930)
07-13 16:45:23.591: I/Process(12926): Sending signal. PID: 12926 SIG: 9
07-13 16:45:23.591: E/AndroidRuntime(12926): FATAL EXCEPTION: main
07-13 16:45:23.591: E/AndroidRuntime(12926): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ahhaproductions.SMSapp/com.ahhaproductions.SMSapp.SMSapp}: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.access$600(ActivityThread.java:153)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.os.Looper.loop(Looper.java:137)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.main(ActivityThread.java:5227)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.reflect.Method.invoke(Method.java:511)
07-13 16:45:23.591: E/AndroidRuntime(12926): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
07-13 16:45:23.591: E/AndroidRuntime(12926): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
07-13 16:45:23.591: E/AndroidRuntime(12926): at dalvik.system.NativeStart.main(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
07-13 16:45:23.591: E/AndroidRuntime(12926): ... 11 more
This seems insightful: Android java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
I decided to right-click the project > Build Path > Configure Build Path
And here I changed the order:
Original Order:
SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Private Libraries,
Android Dependencies
Fixed Order:
Android Private Libraries,
SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Dependencies
Make sure to check all the ones w/ dependencies (or all of them)
I then cleaned the project as usual and ran it and it worked.
EDIT: Apparently the ordering doesn't matter according to Dpa99c's comment below and the link here.

Project compiles successfully, but I get exception about missing drawable

I had my project running in Eclipse, I tried converting it to Android Studio. However, I also downloaded (via github) the latest HoloEverywhere library, and updated contrib/ with ActionBarSherlock library ( I use them both ).
Everything compiles successfully, but when starting the first activity, I get the following exceptions:
06-18 10:57:22.611 2190-2190/com.wasp.androidbg E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wasp.androidbg/com.wasp.androidbg.StartScreen}: android.content.res.Resources$NotFoundException: File res/drawable/list_selector_holo_light.xml from drawable resource ID #0x7f02013f
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/list_selector_holo_light.xml from drawable resource ID #0x7f02013f
at org.holoeverywhere.drawable.DrawableCompat.loadDrawable(DrawableCompat.java:138)
at org.holoeverywhere.drawable.DrawableCompat.getDrawable(DrawableCompat.java:107)
at org.holoeverywhere.widget.ListView.setSelector(ListView.java:964)
at com.wasp.androidbg.StartScreen.onCreate(StartScreen.java:76)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
... 11 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1c/d=0x0 a=2 r=0x7f090011}
at org.holoeverywhere.drawable.DrawableCompat.loadDrawable(DrawableCompat.java:128)
at org.holoeverywhere.drawable.DrawableCompat.getDrawable(DrawableCompat.java:107)
at org.holoeverywhere.drawable.StateListDrawable.inflate(StateListDrawable.java:194)
at org.holoeverywhere.drawable.DrawableCompat.createFromXmlInner(DrawableCompat.java:87)
at org.holoeverywhere.drawable.DrawableCompat.createFromXml(DrawableCompat.java:63)
at org.holoeverywhere.drawable.DrawableCompat.loadDrawable(DrawableCompat.java:135)
... 17 more
06-18 11:04:20.118 2257-2257/com.wasp.androidbg D/dalvikvm: Not late-enabling CheckJNI (already on)
06-18 11:04:20.347 2257-2257/com.wasp.androidbg E/Trace: error opening trace file: No such file or directory (2)
I don't have any custom themes (yet). I double checked the .apk file, and the file exists, but is named abs__list_selector_holo_light.xml - it does have prefix abs__.
I searched but there are no configurations in HoloEverywhere, which use this prefix, or any way to configure it.
Any help appreciated!

Categories

Resources