Re: [android-developers] Network Violation Error
That did it for me thanks to all On 01/25/2012 03:07 PM, New Developer wrote: Not working yet But at least with the new proguard It talks about can't read android-13.jar so I'll try re-download the android 13 SDK Thanks On 02/14/2012 02:51 PM, Harri Smått wrote: On Jan 25, 2012, at 9:27 PM, New Developer wrote: any ideas ? When I faced problems with ProGuard I had no idea what was causing them, I went to their sourceforge site, downloaded latest ProGuard package and replaced tools/proguard/bin and tools/proguard/lib directories within Android SDK with the ones from this version 4.7 package. Worked like a charm for me at least and might do the same trick for you too. And the error I was facing seemed rather "cryptic" unless you're into hacking your way into ProGuard code; [2012-02-14 21:38:21 - Proj] Proguard returned with error code 1. See console [2012-02-14 21:38:21 - Proj] java.lang.ArrayIndexOutOfBoundsException: 5 [2012-02-14 21:38:21 - Proj]at proguard.classfile.editor.VariableRemapper.remapVariable(VariableRemapper.java:151) ... -- H -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
Not working yet But at least with the new proguard It talks about can't read android-13.jar so I'll try re-download the android 13 SDK Thanks On 02/14/2012 02:51 PM, Harri Smått wrote: On Jan 25, 2012, at 9:27 PM, New Developer wrote: any ideas ? When I faced problems with ProGuard I had no idea what was causing them, I went to their sourceforge site, downloaded latest ProGuard package and replaced tools/proguard/bin and tools/proguard/lib directories within Android SDK with the ones from this version 4.7 package. Worked like a charm for me at least and might do the same trick for you too. And the error I was facing seemed rather "cryptic" unless you're into hacking your way into ProGuard code; [2012-02-14 21:38:21 - Proj] Proguard returned with error code 1. See console [2012-02-14 21:38:21 - Proj] java.lang.ArrayIndexOutOfBoundsException: 5 [2012-02-14 21:38:21 - Proj]at proguard.classfile.editor.VariableRemapper.remapVariable(VariableRemapper.java:151) ... -- H -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
On Jan 25, 2012, at 9:27 PM, New Developer wrote: > any ideas ? When I faced problems with ProGuard I had no idea what was causing them, I went to their sourceforge site, downloaded latest ProGuard package and replaced tools/proguard/bin and tools/proguard/lib directories within Android SDK with the ones from this version 4.7 package. Worked like a charm for me at least and might do the same trick for you too. And the error I was facing seemed rather "cryptic" unless you're into hacking your way into ProGuard code; [2012-02-14 21:38:21 - Proj] Proguard returned with error code 1. See console [2012-02-14 21:38:21 - Proj] java.lang.ArrayIndexOutOfBoundsException: 5 [2012-02-14 21:38:21 - Proj]at proguard.classfile.editor.VariableRemapper.remapVariable(VariableRemapper.java:151) ... -- H -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
I can't find anything similar on a google search, They have one that talks about a class, and thus the class is corrupt But my error does not have a class, so I don't know what is corrupt or not ? any ideas ? On 01/25/2012 11:56 AM, New Developer wrote: Thanks I did that I still get the same error , even closed and reopen eclipse same thing On 02/14/2012 11:51 AM, Mark Murphy wrote: That looks like output from the Eclipse console. If so, try cleaning the project (Project> Clean from the main menu). On Wed, Jan 25, 2012 at 11:42 AM, New Developer wrote: Thanks Mark If it doesn't rain it pours Now when I try to export the app I get the following [2012-01-25 11:41:43 - eeds] Proguard returned with error code 1. See console [2012-01-25 11:41:43 - eeds] java.io.IOException: Can't read [proguard.ClassPathEntry@15301ed8] (invalid entry CRC (expected 0x58ace69f but got 0x44f55a1)) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:230) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:200) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:178) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.execute(InputReader.java:100) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.readInput(ProGuard.java:195) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.execute(ProGuard.java:78) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.main(ProGuard.java:499) Any ideas what happened, or how to fix ? Thanks again On 02/14/2012 11:00 AM, Mark Murphy wrote: On Wed, Jan 25, 2012 at 10:36 AM, New Developer wrote: If I run the app using Debug (eclipse and the debug.keystore) all works well If I run the app using Export (publish keystore) I get the following D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 D/StrictMode(26474): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) D/StrictMode(26474): at java.net.InetAddress.lookupHostByName(InetAddress.java:391) D/StrictMode(26474): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) D/StrictMode(26474): at java.net.InetAddress.getAllByName(InetAddress.java:220) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:71) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:50) D/StrictMode(26474): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) What is causing this ? You are doing network I/O on the main application thread. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
Thanks I did that I still get the same error , even closed and reopen eclipse same thing On 02/14/2012 11:51 AM, Mark Murphy wrote: That looks like output from the Eclipse console. If so, try cleaning the project (Project> Clean from the main menu). On Wed, Jan 25, 2012 at 11:42 AM, New Developer wrote: Thanks Mark If it doesn't rain it pours Now when I try to export the app I get the following [2012-01-25 11:41:43 - eeds] Proguard returned with error code 1. See console [2012-01-25 11:41:43 - eeds] java.io.IOException: Can't read [proguard.ClassPathEntry@15301ed8] (invalid entry CRC (expected 0x58ace69f but got 0x44f55a1)) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:230) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:200) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:178) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.execute(InputReader.java:100) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.readInput(ProGuard.java:195) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.execute(ProGuard.java:78) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.main(ProGuard.java:499) Any ideas what happened, or how to fix ? Thanks again On 02/14/2012 11:00 AM, Mark Murphy wrote: On Wed, Jan 25, 2012 at 10:36 AM, New Developer wrote: If I run the app using Debug (eclipse and the debug.keystore) all works well If I run the app using Export (publish keystore) I get the following D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 D/StrictMode(26474): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) D/StrictMode(26474): at java.net.InetAddress.lookupHostByName(InetAddress.java:391) D/StrictMode(26474): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) D/StrictMode(26474): at java.net.InetAddress.getAllByName(InetAddress.java:220) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:71) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:50) D/StrictMode(26474): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) What is causing this ? You are doing network I/O on the main application thread. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
That looks like output from the Eclipse console. If so, try cleaning the project (Project > Clean from the main menu). On Wed, Jan 25, 2012 at 11:42 AM, New Developer wrote: > Thanks Mark > If it doesn't rain it pours > Now when I try to export the app I get the following > > [2012-01-25 11:41:43 - eeds] Proguard returned with error code 1. See > console > [2012-01-25 11:41:43 - eeds] java.io.IOException: Can't read > [proguard.ClassPathEntry@15301ed8] (invalid entry CRC (expected 0x58ace69f > but got 0x44f55a1)) > [2012-01-25 11:41:43 - eeds] at > proguard.InputReader.readInput(InputReader.java:230) > [2012-01-25 11:41:43 - eeds] at > proguard.InputReader.readInput(InputReader.java:200) > [2012-01-25 11:41:43 - eeds] at > proguard.InputReader.readInput(InputReader.java:178) > [2012-01-25 11:41:43 - eeds] at > proguard.InputReader.execute(InputReader.java:100) > [2012-01-25 11:41:43 - eeds] at > proguard.ProGuard.readInput(ProGuard.java:195) > [2012-01-25 11:41:43 - eeds] at > proguard.ProGuard.execute(ProGuard.java:78) > [2012-01-25 11:41:43 - eeds] at > proguard.ProGuard.main(ProGuard.java:499) > > > Any ideas what happened, or how to fix ? > > Thanks again > > > > On 02/14/2012 11:00 AM, Mark Murphy wrote: > > On Wed, Jan 25, 2012 at 10:36 AM, New Developer wrote: > > If I run the app using Debug (eclipse and the debug.keystore) all works > well > If I run the app using Export (publish keystore) I get the following > > > D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: > android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 > D/StrictMode(26474): at > android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) > D/StrictMode(26474): at > java.net.InetAddress.lookupHostByName(InetAddress.java:391) > D/StrictMode(26474): at > java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) > D/StrictMode(26474): at > java.net.InetAddress.getAllByName(InetAddress.java:220) > D/StrictMode(26474): at > libcore.net.http.HttpConnection.(HttpConnection.java:71) > D/StrictMode(26474): at > libcore.net.http.HttpConnection.(HttpConnection.java:50) > D/StrictMode(26474): at > libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) > > > What is causing this ? > > You are doing network I/O on the main application thread. > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
Thanks Mark If it doesn't rain it pours Now when I try to export the app I get the following [2012-01-25 11:41:43 - eeds] Proguard returned with error code 1. See console [2012-01-25 11:41:43 - eeds] java.io.IOException: Can't read [proguard.ClassPathEntry@15301ed8] (invalid entry CRC (expected 0x58ace69f but got 0x44f55a1)) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:230) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:200) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.readInput(InputReader.java:178) [2012-01-25 11:41:43 - eeds] at proguard.InputReader.execute(InputReader.java:100) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.readInput(ProGuard.java:195) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.execute(ProGuard.java:78) [2012-01-25 11:41:43 - eeds] at proguard.ProGuard.main(ProGuard.java:499) Any ideas what happened, or how to fix ? Thanks again On 02/14/2012 11:00 AM, Mark Murphy wrote: On Wed, Jan 25, 2012 at 10:36 AM, New Developer wrote: If I run the app using Debug (eclipse and the debug.keystore) all works well If I run the app using Export (publish keystore) I get the following D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 D/StrictMode(26474): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) D/StrictMode(26474): at java.net.InetAddress.lookupHostByName(InetAddress.java:391) D/StrictMode(26474): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) D/StrictMode(26474): at java.net.InetAddress.getAllByName(InetAddress.java:220) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:71) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:50) D/StrictMode(26474): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) What is causing this ? You are doing network I/O on the main application thread. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network Violation Error
On Wed, Jan 25, 2012 at 10:36 AM, New Developer wrote: > If I run the app using Debug (eclipse and the debug.keystore) all works > well > If I run the app using Export (publish keystore) I get the following > > > D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: > android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 > D/StrictMode(26474): at > android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) > D/StrictMode(26474): at > java.net.InetAddress.lookupHostByName(InetAddress.java:391) > D/StrictMode(26474): at > java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) > D/StrictMode(26474): at > java.net.InetAddress.getAllByName(InetAddress.java:220) > D/StrictMode(26474): at > libcore.net.http.HttpConnection.(HttpConnection.java:71) > D/StrictMode(26474): at > libcore.net.http.HttpConnection.(HttpConnection.java:50) > D/StrictMode(26474): at > libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) > > > What is causing this ? You are doing network I/O on the main application thread. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Network Violation Error
Hi All If I run the app using Debug (eclipse and the debug.keystore) all works well If I run the app using Export (publish keystore) I get the following D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 D/StrictMode(26474): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) D/StrictMode(26474): at java.net.InetAddress.lookupHostByName(InetAddress.java:391) D/StrictMode(26474): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) D/StrictMode(26474): at java.net.InetAddress.getAllByName(InetAddress.java:220) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:71) D/StrictMode(26474): at libcore.net.http.HttpConnection.(HttpConnection.java:50) D/StrictMode(26474): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351) What is causing this ? and how to avoid it I have the following code StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectNetwork() .build()); But this makes no change in the Export state, makes a difference in the Debug without it it fails. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en