I am creating a lib with SLC and I get this error message:
Starting step: Compiling Java code.
D:\Basic4android Proyectos\my_wrapper\as_wrapper\app\src\androidTest\java\com\example\my_wrapper\ExampleInstrumentedTest.java:5: error: package androidx.test.platform.app does not exist
import androidx.test.platform.app.InstrumentationRegistry;
package com.example.my_wrapper;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
<---- This Line
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="
http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.my_wrapper", appContext.getPackageName());
}
}