嗨我正在制作一个Android应用程序并上传到游戏商店,我已经测试了很多时间它工作正常
但客户说不是在4.1.2上工作,它仍在崩溃。 播放商店网址:URL
我的清单XML代码在这里
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jobDiagnosis.free"
android:versionCode="34"
android:versionName="5.2" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<application
android:noHistory="true"
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar" >
<activity
android:name="com.jobDiagnosis.free.Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Main_Search" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
android:windowSoftInputMode="adjustPan" />
<activity android:name=".LoginActivity" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
android:windowSoftInputMode="adjustPan" />
<activity android:name=".JobSearch" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
android:windowSoftInputMode="adjustPan" />
<activity android:name=".Job_Description" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation" />
<activity android:name=".Saved_jobs" android:label="@string/app_name"
android:configChanges="orientation" />
<activity android:name=".MyProfile" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
android:windowSoftInputMode="stateHidden|adjustResize|adjustPan" />
<activity android:name=".AboutUs" android:label="@string/app_name"/>
<activity android:name=".Selected_JobDescriptionActivity" android:label="@string/app_name" />
<activity android:name=".ApplyJobActivity" android:label="@string/app_name" />
<activity android:name="com.quantcast.measurement.service.AboutQuantcastScreen" > </activity>
<activity android:name=".Saved_JobView" android:label="@string/app_name" />
<activity android:name=".Main_listview" android:label="@string/app_name" />
<activity android:name=".RecentlyViewd" android:label="@string/app_name" />
<activity android:name=".Tab_Bar" android:label="@string/app_name" />
<activity android:name=".ActivityStack" android:label="@string/app_name" />
<activity android:name=".JobAlert" android:label="@string/app_name" />
<activity android:name=".Notify" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation" />
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</application>
</manifest>
Play商店崩溃代码
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 66: http://www.jobdiagnosis.com/fjobsrchservise_alert.php?keyword=Food / Bev /Hosp&location=27534&myid=nullstart=0&aff_id=anapp
at java.net.URI.create(URI.java:727)
at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:75)
at com.jobDiagnosis.free.Notify$NotifyAsync.doInBackground(Notify.java:485)
at com.jobDiagnosis.free.Notify$NotifyAsync.doInBackground(Notify.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 5 more
2
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 66: http://www.jobdiagnosis.com/fjobsrchservise_alert.php?keyword=Food / Bev /Hosp&location=27534&myid=null&start=0&aff_id=anapp
at java.net.URI.create(URI.java:727)
at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:75)
at com.jobDiagnosis.free.JobAlert$SearchAsync.doInBackground(JobAlert.java:724)
at com.jobDiagnosis.free.JobAlert$SearchAsync.doInBackground(JobAlert.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 5 more
请建议我如何解决这个问题
先谢谢
答案 0 :(得分:0)
您需要对网址中的参数进行网址编码。 keyword
参数包含空格字符。 URL中不允许使用这些字符。而且,看起来你错过了一个“&amp;” myid
参数与start
参数之间的字符。看到这个错误:
Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 66: http://www.jobdiagnosis.com/fjobsrchservise_alert.php?keyword=Food / Bev /Hosp&location=27534&myid=nullstart=0&aff_id=anapp