Android 在jar文件中调用类

Android 在jar文件中调用类,android,jar,android-intent,Android,Jar,Android Intent,我创建了包含两个类的jar文件。这里我想调用第二个类,第一个类在jar中 我使用intent,但当将这些jar实现到另一个应用程序时,它会强制关闭。我也在清单中提供许可 Intent intent=new Intent(this,view.class); startActivityForResult(intent,0); 这是我的代码发布LogCat输出,并更具体地说明您试图在此处存档的内容。您试图调用的视图类来自jar文件,它是一个活动,因此请确保您已在清单文件中的标记yes i added

我创建了包含两个类的jar文件。这里我想调用第二个类,第一个类在jar中

我使用intent,但当将这些jar实现到另一个应用程序时,它会强制关闭。我也在清单中提供许可

Intent intent=new Intent(this,view.class);
startActivityForResult(intent,0);

这是我的代码

发布LogCat输出,并更具体地说明您试图在此处存档的内容。您试图调用的视图类来自jar文件,它是一个活动,因此请确保您已在清单文件中的标记yes i added activity中将其声明为清单文件中的活动。我想在jar的主类中使用方法having intent调用jar中的另一个类。运行时没有命令输出:“am start-n com.example.calldemo/com.example.calldemo.calldemo-a android.intent.action.main-c android.intent.category.LAUNCHER”在device emulator-5554上。在我的错误日志中,记录LogCat输出,并更具体地说明您试图在此处存档的内容。您试图调用的视图类来自jar文件,它是一个活动,因此请确保您已在清单文件中声明它为活动,标记为yes i added activity in Manifest。我想在jar的主类中使用方法having intent调用jar中的另一个类。运行时没有命令输出:“am start-n com.example.calldemo/com.example.calldemo.calldemo-a android.intent.action.main-c android.intent.category.LAUNCHER”在device emulator-5554上。它在我的错误日志中