You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build natviscript project with "implementation("androidx.appcompat:appcompat:1.0.2")", The project build fail with error below. Please help me, thanks...
/media/DATA/nativescript/test/TestBiometricLib/platforms/android/app/src/main/java/com/tns/FragmentClass.java:9: error: cannot find symbol
public class FragmentClass extends android.support.v4.app.Fragment implements com.tns.NativeScriptHashCodeProvider {
^
/media/DATA/nativescript/test/TestBiometricLib/platforms/android/app/src/debug/java/com/tns/ErrorReport.java:318: error: cannot find symbol
private class Pager extends FragmentStatePagerAdapter {
^
symbol: class AppCompatActivity
location: class ErrorReportActivity
/media/DATA/nativescript/test/TestBiometricLib/platforms/android/app/src/debug/java/com/tns/ErrorReportActivity.java:45: error: no suitable method found for makeText(ErrorReportActivity,String,int)
Toast.makeText(this, "Couldn't resolve permissions", Toast.LENGTH_LONG).show();
^
method Toast.makeText(Context,CharSequence,int) is not applicable
(argument mismatch; ErrorReportActivity cannot be converted to Context)
method Toast.makeText(Context,int,int) is not applicable
(argument mismatch; ErrorReportActivity cannot be converted to Context)
.........
The text was updated successfully, but these errors were encountered:
Hi @tvannguyen, you cannot use both android support library and android X in one project, you can try this new functionality using out tns-anroid@next version.
@tvannguyen commented on Wed Nov 14 2018
When I build natviscript project with "implementation("androidx.appcompat:appcompat:1.0.2")", The project build fail with error below. Please help me, thanks...
The text was updated successfully, but these errors were encountered: