I have some resources that I exported into a JAR lib.

However, when I try to do this with one of them from the JAR, it doesn't 
work:

setContentView(R.layout.my_resource_layout);


I get this:

09-24 16:29:13.750: E/AndroidRuntime(3693): FATAL EXCEPTION: main
09-24 16:29:13.750: E/AndroidRuntime(3693): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.font_lib_test2/com.font_lib_test2.MainActivity}: 
android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1968)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1993)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread.access$600(ActivityThread.java:127)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.os.Looper.loop(Looper.java:137)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread.main(ActivityThread.java:4507)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
java.lang.reflect.Method.invoke(Method.java:511)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
dalvik.system.NativeStart.main(Native Method)
09-24 16:29:13.750: E/AndroidRuntime(3693): Caused by: 
android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.content.res.Resources.getValue(Resources.java:1031)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.content.res.Resources.loadXmlResourceParser(Resources.java:2138)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.content.res.Resources.getLayout(Resources.java:870)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:394)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:352)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:272)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.Activity.setContentView(Activity.java:1835)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
com.font_lib_test2.MainActivity.onCreate(MainActivity.java:17)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.Activity.performCreate(Activity.java:4469)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
09-24 16:29:13.750: E/AndroidRuntime(3693): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1932)


Anyone know how to make this work?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to