Android HttpURLConnection NumberFormatException

Android HttpURLConnection NumberFormatException,android,httpurlconnection,numberformatexception,Android,Httpurlconnection,Numberformatexception,所以谷歌音乐没有官方的api,但也有一些非官方的api。因为它是非官方的,我们必须使用ClientLogin而不是OAuth,我在以下方面遇到了问题 URL=新URL(“”) HttpURLConnection connection=(HttpURLConnection)url.openConnection() 我有一种数字形式的感觉。知道发生了什么事吗 这是堆栈跟踪 Integer.parseInt(String, int) line: not available Integer.<

所以谷歌音乐没有官方的api,但也有一些非官方的api。因为它是非官方的,我们必须使用ClientLogin而不是OAuth,我在以下方面遇到了问题

URL=新URL(“”)

HttpURLConnection connection=(HttpURLConnection)url.openConnection()

我有一种数字形式的感觉。知道发生了什么事吗

这是堆栈跟踪

Integer.parseInt(String, int) line: not available   
Integer.<init>(String) line: not available  
InetAddressCachePolicy.<clinit>() line: not available   
InetAddress$Cache.getPolicy() line: not available   
InetAddress$Cache.put(String, Object) line: not available   
InetAddress.cacheInitIfNeeded() line: not available 
InetAddress.cacheAddress(String, Object, boolean) line: not available   
InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
InetAddress.getLocalHost() line: not available  
SeedGenerator$1.run() line: not available   
AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
SeedGenerator.getSystemEntropy() line: not available    
SecureRandom$SeederHolder.<clinit>() line: not available    
SecureRandom.engineNextBytes(byte[]) line: not available    
SecureRandom.nextBytes(byte[]) line: not available  
SecureRandom.next(int) line: not available  
SecureRandom(Random).nextInt() line: not available  
DefaultSSLContextImpl(SSLContextImpl).engineInit(KeyManager[], TrustManager[], SecureRandom) line: not available    
DefaultSSLContextImpl.<init>() line: not available  
NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method]   
NativeConstructorAccessorImpl.newInstance(Object[]) line: not available 
DelegatingConstructorAccessorImpl.newInstance(Object[]) line: not available 
Constructor<T>.newInstance(Object...) line: not available   
Class<T>.newInstance0() line: not available 
Class<T>.newInstance() line: not available  
Provider$Service.newInstance(Object) line: not available    
GetInstance.getInstance(Provider$Service, Class) line: not available    
GetInstance.getInstance(String, Class, String) line: not available  
SSLContext.getInstance(String) line: not available  
SSLContext.getDefault() line: not available 
SSLSocketFactory.getDefault() line: not available   
HttpsURLConnection.getDefaultSSLSocketFactory() line: not available 
HttpsURLConnectionImpl(HttpsURLConnection).<init>(URL) line: not available  
HttpsURLConnectionImpl.<init>(URL, Proxy, Handler) line: not available  
Handler.openConnection(URL, Proxy) line: not available  
Handler.openConnection(URL) line: not available 
URL.openConnection() line: not available    
Integer.parseInt(字符串,int)行:不可用
整数。(字符串)行:不可用
InetAddressCachePolicy。()行:不可用
InetAddress$Cache.getPolicy()行:不可用
InetAddress$Cache.put(字符串、对象)行:不可用
InetAddress.cacheInitIfNeeded()行:不可用
InetAddress.cacheAddress(字符串、对象、布尔值)行:不可用
InetAddress.getAddressFromNameService(字符串,InetAddress)行:不可用
InetAddress.getLocalHost()行:不可用
种子生成器$1.run()行:不可用
AccessController.doPrivileged(PrivilegedAction)行:不可用[本机方法]
SeedGenerator.getSystemEntropy()行:不可用
SecureRandom$SeederHolder.()行:不可用
SecureRandom.engineNextBytes(字节[])行:不可用
SecureRandom.nextBytes(字节[])行:不可用
SecureRandom.next(int)行:不可用
SecureRandom(Random).nextInt()行:不可用
DefaultSSLContextImpl(SSLContextImpl).engineInit(KeyManager[],TrustManager[],SecureRandom)行:不可用
DefaultSSLContextImpl()行:不可用
NativeConstructorAccessorImpl.newInstance0(构造函数,对象[])行:不可用[本机方法]
NativeConstructorAccessorImpl.newInstance(对象[])行:不可用
DelegatingConstructorAccessorImpl.newInstance(对象[])行:不可用
构造函数.newInstance(对象…)行:不可用
Class.newInstance0()行:不可用
Class.newInstance()行:不可用
提供程序$Service.newInstance(对象)行:不可用
GetInstance.GetInstance(提供程序$Service,类)行:不可用
GetInstance.GetInstance(字符串、类、字符串)行:不可用
SSLContext.getInstance(字符串)行:不可用
SSLContext.getDefault()行:不可用
SSLSocketFactory.getDefault()行:不可用
HttpsURLConnection.getDefaultSSLSocketFactory()行:不可用
HttpsURLConnectionImpl(HttpsURLConnection)。(URL)行:不可用
HttpsURLConnectionImpl.(URL、代理、处理程序)行:不可用
Handler.openConnection(URL,代理)行:不可用
Handler.openConnection(URL)行:不可用
URL.openConnection()行:不可用

您可以发布stacktrace或logcat吗?我在Eclipse中有一个NumberFormatException断点。从来没有想过要把它拿走-嗯。。