我有一个新的Android应用程序,选择支持该应用程序。我注意到,有几个模块,包括Route::get('/{locale}/WIPReport/show/{startdate}/{enddate}/{regions?}/{offices?}/{departments?}/{clients?}/{employees?}', 'WIPReportController@reportdata')
->where(['regions' => '[0-9,]+', 'offices' => '[0-9,]+', 'departments' => '[0-9,]+', 'clients' => '[0-9,]+', 'employees' => '[0-9,]+'])
,com.example.exampleapp.app
和com.example.exampleapp.feature
。
我还注意到,主要活动com.example.exampleapp.instantapp
是在功能模块而非应用程序模块中创建的。
我尝试将其与MainActivity放在一起,但是当我单击MainActivity中的按钮时,会出现以下错误,该按钮应该将我重定向到LoginActivity。
MainActivity
根据答案here,我了解功能模块应包含将在即时应用程序和已安装的应用程序之间共享的代码。我是对的吗?如果没有,我应该在哪里放置Process: example.com.exampleapp.app, PID: 22468
java.lang.NoSuchFieldError: No field phone of type I in class Lexample/com/exampleapp/feature/R$id; or its superclasses (declaration of 'example.com.exampleapp.feature.R$id' appears in /data/app/example.com.exampleapp.app-1/split_lib_slice_7_apk.apk)
at example.com.exampleapp.feature.LoginActivity.LoginButton(LoginActivity.java:30)
at example.com.exampleapp.feature.LoginActivity.onCreate(LoginActivity.java:26)
at android.app.Activity.performCreate(Activity.java:6666)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
?