我必须在三星应用程序上发布付费应用程序,因此我尝试按照三星官方开发者网站上的指南为 Android 实施氧化锆许可证管理保护。
我已将 Zirconia.jar 库添加到构建路径,以及项目的 libs 文件armeabi
夹中包含该文件的文件夹。libnativeinterface.so
当我尝试运行这个简单的测试项目时
class MyLicenseCheckListener implements LicenseCheckListener {
public void licenseCheckedAsValid() {
Log.d("ZirconiaTest", "License is valid");
ownerHandler.post(new Runnable() {
public void run() {
ownerTextView.setText("Licenza verificata correttamente");
}
});
}
public void licenseCheckedAsInvalid() {
Log.d("ZirconiaTest", "License is invalid");
ownerHandler.post(new Runnable() {
public void run() {
ownerTextView.setText("Licenza non valida");
}
});
}
Handler ownerHandler;
TextView ownerTextView;
}
public class ZirconiaTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Handler handler = new Handler();
TextView tv = new TextView(this);
tv.setText( "This is a simple test application for Zirconia!\nPlease hold on while verifying the license..." );
setContentView(tv);
Zirconia zirconia = new Zirconia(this);
zirconia.doVariablesTest();
MyLicenseCheckListener listener = new MyLicenseCheckListener();
listener.ownerHandler = handler;
listener.ownerTextView = tv;
//zirconia.setBogusIMEI("");
zirconia.setLicenseCheckListener(listener);
zirconia.checkLicense(false, false);
zirconia.doVariablesTest();
}
}
我收到此错误并且应用程序崩溃
01-04 22:09:23.519: E/dalvikvm(28775): Could not find class 'com.samsung.zirconia.Zirconia', referenced from method com.samsung.zirconia.test.ZirconiaTest.onCreate
01-04 22:09:23.519: W/dalvikvm(28775): VFY: unable to resolve new-instance 9 (Lcom/samsung/zirconia/Zirconia;) in Lcom/samsung/zirconia/test/ZirconiaTest;
怎么了?