0
When I start Run from the app a Build gives me the following error
java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\murilo\AndroidStudioProjects\Prism\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_7\resources_ap
One minute I was running on the other, the only thing I did was a layout change and then this! Does anyone have any idea what might be going on and how to solve
EDIT
As I was asked here this Activity xml before
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbarCS"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
</android.support.design.widget.AppBarLayout>
<TextView
android:id="@+id/nameItem"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="40dp"
android:layout_marginStart="40dp"/>
<TextView
android:id="@+id/timeCust"
android:layout_width="180dp"
android:layout_height="30dp"
android:layout_marginTop="20dp"
android:layout_marginStart="40dp"/>
<TextView
android:id="@+id/disponibilidade"
android:layout_width="180dp"
android:layout_height="30dp"
android:layout_marginTop="20dp"
android:layout_marginStart="40dp"/>
</LinearLayout>
And here’s the xml after
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<!--Toolbar-->
<android.support.v7.widget.Toolbar
android:id="@+id/toolbarCS"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
</android.support.design.widget.AppBarLayout>
<TextView
android:id="@+id/nameItem"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_below="@id/appbar"
android:layout_marginTop="40dp"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/timeCust"
android:layout_width="180dp"
android:layout_height="30dp"
android:layout_below="@id/nameItem"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/disponibilidade"
android:layout_width="180dp"
android:layout_height="30dp"
android:layout_below="@id/timeCust"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
And here’s the Activity code
class ConfirmationScreen : BaseActivity() {
private val unidade : Item by lazy { intent.getParcelableExtra<Item>("item") }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.confirmation_screen)
setupToolbar(R.id.toolbarCS, "Confirmation", true)
initView()
}
private fun initView() {
nameItem.text = unidade.name
timeCust.text = unidade.timeCust
disponibilidade.text = unidade.delivery
}
}
I switched from Linear to a Relative and after that error started, the code did not change
I’ve had problems with
slices
apk before, mostly I resolved by running the Build > Clean Project and after the end executing Build > Rebuild Project– Icaro Martins
I’ve tried and you haven’t solved
– Souza00