java.lang.RuntimeException: Unable to start activity ComponentInfo{net.deviac.retrofitsample/net.deviac.retrofitsample.RetrofitActivity}: java.lang.IllegalArgumentException: URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query. for method YahooWeatherClient.getWeatherData


Solutions on the web17684

Solution icon of stackoverflow
%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query. for method YahooWeatherClient.getWeatherData

Solution icon of stackoverflow
via Stack Overflow by Elad Blau
, 1 year ago
Unable to start activity ComponentInfo{com.example.eladblau.myfamily/com.example.eladblau.myfamily.MainActivity}: java.lang.IllegalArgumentException: Default constructor for class com.a.nj is not accessible.

Solution icon of github
via GitHub by QichaoChen
, 1 year ago
Unable to start activity ComponentInfo{fr.ganfra.materialspinner.sample/fr.ganfra.materialspinner.sample.MainActivity}: java.lang.IllegalArgumentException: Spinner adapter view type count must be 1

Solution icon of stackoverflow
Unable to start activity ComponentInfo{pada.buddha.buddhapadda/pada.buddha.buddhapadda.MainActivity}: java.lang.IllegalArgumentException: Path must not be empty.

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.dan190.tasks/com.dan190.tasks.activity.TaskEditActivity}: java.lang.IllegalArgumentException: Target must not be null.

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.nazim.kmapp/com.example.nazim.kmapp.MainActivity}: java.lang.IllegalArgumentException: Target must not be null.

Solution icon of stackoverflow
Unable to start activity ComponentInfo{info.androidhive.materialtabs/info.androidhive.materialtabs.activity.CustomViewTabsActivity}: java.lang.IllegalArgumentException: ViewPager does not have a PagerAdapter set

Solution icon of stackoverflow
Unable to start activity ComponentInfo{zw.co.pindula.funsa/zw.co.pindula.funsa.util.Category}: android.database.sqlite.SQLiteException: no such table: categories (code 1): , while compiling: SELECT * FROM categories

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.google.android.gms.samples.vision.barcodereader/com.google.android.gms.samples.vision.barcodereader.HistoryActivity}: android.database.sqlite.SQLiteException: no such table: pbstable (code 1): , while compiling: select * from pbstable

Solution icon of stackoverflow
via Stack Overflow by beshoy samy
, 11 months ago
Unable to start activity ComponentInfo{com.getsaveit.saveit/com.getsaveit.saveit.activities.Dashboard}: android.database.sqlite.SQLiteException: near "TRANSACTION": syntax error (code 1): , while compiling: SELECT * FROM TRANSACTION

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{net.deviac.retrofitsampleet.deviac.retrofitsample.RetrofitActivity}: java.lang.IllegalArgumentException: URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query.
                      for method YahooWeatherClient.getWeatherData
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
	at android.app.ActivityThread.access$800(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5254)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.IllegalArgumentException: URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query.
                      for method YahooWeatherClient.getWeatherData
	at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:720)
	at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:711)
	at retrofit2.ServiceMethod$Builder.parseHttpMethodAndPath(ServiceMethod.java:297)
	at retrofit2.ServiceMethod$Builder.parseMethodAnnotation(ServiceMethod.java:242)
	at retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:170)
	at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:166)
	at retrofit2.Retrofit$1.invoke(Retrofit.java:145)
	at java.lang.reflect.Proxy.invoke(Proxy.java:397)
	at $Proxy0.getWeatherData(Unknown Source)
	at net.deviac.retrofitsample.RetrofitActivity.getWeatherData(RetrofitActivity.java:45)
	at net.deviac.retrofitsample.RetrofitActivity.onCreate(RetrofitActivity.java:30)
	at android.app.Activity.performCreate(Activity.java:5990)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
	... 10 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 4 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
4 more bugmates