“在调用超类型构造函数之前无法引用 'SAPServiceProviderConnection'
"Cannot reference 'SAPServiceProviderConnection' before supertype constructor has been called
我在 Android Studio 中导入了三星提供的一个项目 SimpleSAPProvider (http://developer.samsung.com/what-is-new/blog/2014/Tutorial-How-to-build-a-Basic-Integrated-Gear-Application)。它出现一个错误“"Cannot reference 'SAPServiceProviderConnection' before supertype constructor has been called.",我无法编译它。它在 Eclipse 中运行良好。
这是代码..
public SAPServiceProvider() {
super(TAG, SAPServiceProviderConnection.class);//Showing Error
Log.d("SAP PROVIDER", "SERVICE CONSTRUCTOR");
}
这是一个合法的代码。在 Eclipse 中使用它可以工作 properly.Android Studio 但是显示错误
我在 Android Studio 中导入了三星提供的一个项目 SimpleSAPProvider (http://developer.samsung.com/what-is-new/blog/2014/Tutorial-How-to-build-a-Basic-Integrated-Gear-Application)。它出现一个错误“"Cannot reference 'SAPServiceProviderConnection' before supertype constructor has been called.",我无法编译它。它在 Eclipse 中运行良好。
这是代码..
public SAPServiceProvider() {
super(TAG, SAPServiceProviderConnection.class);//Showing Error
Log.d("SAP PROVIDER", "SERVICE CONSTRUCTOR");
}
这是一个合法的代码。在 Eclipse 中使用它可以工作 properly.Android Studio 但是显示错误