ProjectSPAN / android-manet-visualizer

SPAN - Android Manet Visualization
14 stars 9 forks source link

Manifest errors #1

Closed daviddoria closed 11 years ago

daviddoria commented 11 years ago

"Error: No resource found that matches the given name." on line 8 of the manifest: android:icon="@drawable/icon" This is easy to fix by copying an icon.png into res/drawable-mdpi, but I don't know which icon you want to use.

After fixing that, I get: Installing visualizer.apk... Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

It seems to be due to the android:name being empty. I changed it from

to and then it launches, but immediately crashes ("Unfortunately, MANET Visualizer has stopped.", and there is strangely no LogCat output that seems to indicate what happened. Here it is: 09-20 12:43:20.080: D/AndroidRuntime(12758): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 09-20 12:43:20.080: D/AndroidRuntime(12758): CheckJNI is OFF 09-20 12:43:20.310: D/AndroidRuntime(12758): Calling main entry com.android.commands.pm.Pm 09-20 12:43:20.320: D/AndroidRuntime(12758): Shutting down VM 09-20 12:43:20.330: D/dalvikvm(12758): GC_CONCURRENT freed 101K, 82% free 469K/2560K, paused 0ms+0ms 09-20 12:43:20.330: D/dalvikvm(12758): Debugger has detached; object registry had 1 entries 09-20 12:43:20.330: I/AndroidRuntime(12758): NOTE: attach of thread 'Binder Thread #3' failed 09-20 12:43:20.340: D/dalvikvm(5825): GC_CONCURRENT freed 419K, 10% free 6743K/7431K, paused 31ms+2ms 09-20 12:43:20.680: D/AndroidRuntime(12772): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 09-20 12:43:20.680: D/AndroidRuntime(12772): CheckJNI is OFF 09-20 12:43:20.850: D/AndroidRuntime(12772): Calling main entry com.android.commands.am.Am 09-20 12:43:20.850: I/ActivityManager(192): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.span.visualizer/.MANETVisualizer} from pid 12772 09-20 12:43:20.900: D/WindowManager(192): adjustConfigurationLw, config:{1.0 0mcc0mnc (no locale) layoutdir=0 sw800dp w800dp h1232dp xlrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidOpen:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2 09-20 12:43:20.910: D/AndroidRuntime(12772): Shutting down VM 09-20 12:43:20.920: D/dalvikvm(12772): GC_CONCURRENT freed 102K, 81% free 492K/2560K, paused 0ms+1ms 09-20 12:43:20.920: D/dalvikvm(12772): Debugger has detached; object registry had 1 entries 09-20 12:43:20.940: I/AndroidRuntime(12772): NOTE: attach of thread 'Binder Thread #3' failed 09-20 12:43:20.980: D/OpenGLRenderer(506): Flushing caches (mode 1) 09-20 12:43:20.980: D/OpenGLRenderer(506): Flushing caches (mode 0) 09-20 12:43:21.130: D/dalvikvm(12783): Late-enabling CheckJNI 09-20 12:43:21.150: I/ActivityManager(192): Start proc org.span.ptt for service org.span.ptt/.service.ConnectionService: pid=12783 uid=10091 gids={3003} 09-20 12:43:21.170: I/dalvikvm(12783): Turning on JNI app bug workarounds for target SDK version 9... 09-20 12:43:21.200: D/ConnectionService(12783): onCreate() 09-20 12:43:21.220: D/ConnectionService(12783): onStartCommand 09-20 12:43:27.330: D/dalvikvm(5825): GC_CONCURRENT freed 416K, 10% free 6743K/7431K, paused 12ms+2ms 09-20 12:43:30.890: W/ActivityManager(192): Launch timeout has expired, giving up wake lock! 09-20 12:43:30.910: W/ActivityManager(192): Activity idle timeout for ActivityRecord{410d1a78 org.span.visualizer/.MANETVisualizer}
jrobble commented 11 years ago

The MANET Visualizer requires you to do your development in the Processing IDE. Refer to this README: https://github.com/ProjectSPAN/android-manet-visualizer/blob/master/ManetSketch/README.txt

That may be the crux of your problem.

daviddoria commented 11 years ago

Ah, very sorry. I saw the README.md in android-manet-visualizer/ and didn't realize there was a separate README.txt in the ManetSketch folder. I'll try following the instructions :)