1
eggacher OP 我放弃了,真的在android上用不了,提示java.lang.NoClassDefFoundError: org.apache.axis2.client.Stub
|
2
eggacher OP 最后发现是我的问题,mac下的android项目引用第三方jar包,需要设置环境变量
sudo vi ~/.bash_profile export ARCHFLAGS="-arch x86_64"; export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home; export CLASSPATH=$CLASSPATH:/Users/gangcheng/SourceCode/Java/DigitalGreenNew/libs/ksoap2-android-assembly-2.5.4-jar-with-dependencies.jar:/Users/gangcheng/SourceCode/Java/DigitalGreenNew/libs/ormlite-android-4.38.jar:/Users/gangcheng/SourceCode/Java/DigitalGreenNew/libs/ormlite-core-4.38.jar:/Users/gangcheng/SourceCode/Java/DigitalGreenNew/libs/ormlite-jdbc-4.38.jar; 将需要引用到的jar包的路径设置在CLASSPATH中,就不会报错了 |