Note that there are some explanatory texts on larger screens.

plurals
  1. POMono for Android cannot find assets file
    text
    copied!<p> I'm frustrated after many tries to make it work, I want to read a text file out of assets folder while using MonoDevelop and mono for android. </p> <p>I followed the tutorial here: <a href="http://docs.xamarin.com/guides/android/advanced_topics/using_android_assets" rel="nofollow">http://docs.xamarin.com/guides/android/advanced_topics/using_android_assets</a></p> <p> but I get this: </p> <pre><code>UNHANDLED EXCEPTION: Java.IO.FileNotFoundException: Exception of type'Java.IO.FileNotFoundException' was thrown. at Android.Runtime.JNIEnv.CallObjectMethod (intptr,intptr,Android.Runtime.JValue[]) &lt;0x00080&gt; at Android.Content.Res.AssetManager.Open (string) &lt;0x0012b&gt; at Application.Android.AppActivity.OnCreate (Android.OS.Bundle) &lt;0x0009b&gt; at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) &lt;0x0005f&gt; at (wrapper dynamic-method) object.ee3982cf-bdcd-4242-9d0f-0d1b3908a490 (intptr,intptr,intptr) &lt;0x00043&gt; --- End of managed exception stack trace --- java.io.FileNotFoundException: read_assets.txt at android.content.res.AssetManager.openAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:313) at android.content.res.AssetManager.open(AssetManager.java:287) at application.android.AppActivity.n_onCreate(Native Method) at application.android.AppActivity.onCreate(AppActivity.java:36) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) 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:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p></p></p> <p> I opened up the apk file, there was no assets folder inside, did I do anything wrong? </p> <p>And by the way, I'm using emulators</p> <p> UPDATE:<br/> I'm sorry, it's a typo, i missed a 's' in my file name, so everything is ok now, how do I delete this post? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload