Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help to create kotlin jar to use that in java #23

Closed
shibupanda opened this issue Nov 23, 2019 · 13 comments
Closed

Need Help to create kotlin jar to use that in java #23

shibupanda opened this issue Nov 23, 2019 · 13 comments

Comments

@shibupanda
Copy link
Collaborator

Hi @truongsinh could you please help me to build a jar as I tried and it leads to below error.
java -jar appium-flutter-finder-0.0.4.jar
no main manifest attribute, in appium-flutter-finder-0.0.4.jar

If possible please help me with the jar link.
That would really help for java user.

@truongsinh
Copy link
Collaborator

@shibupanda I don't think you can run java -jar appium-flutter-finder-0.0.4.jar directly, but you have to declare this as dependency. Please find the example at https://github.com/truongsinh/appium-flutter-driver/blob/master/example/java/pom.xml, specifically line https://github.com/truongsinh/appium-flutter-driver/blob/master/example/java/pom.xml#L52-L56 and https://github.com/truongsinh/appium-flutter-driver/blob/master/example/java/pom.xml#L88-L91

@shibupanda
Copy link
Collaborator Author

shibupanda commented Nov 26, 2019

@truongsinh Yes you are absolutely correct.
But I did only for the verification whether the build is correct or not. I am using "gradle clean build" command to build the jar.

When I used the built jar in the project it leads with the below error.

https://gist.github.com/shibupanda/662770f842224283248b603d16f0351c

Please let me know whether I did something wrong while building the jar file or please publish the stable jar if you have. Thanks

@shibupanda
Copy link
Collaborator Author

Hi @truongsinh
Any suggestion on the above.

@truongsinh
Copy link
Collaborator

@shibupanda it seems your project does not have any kotlin depedency, which is required. It's kind of weird because appium-flutter-driver should already depend on kotlin std. Maybe you need to declare "transitive" :-? It's better if you have the whole project available for me to run on my local machine.

@truongsinh
Copy link
Collaborator

@shibupanda
Copy link
Collaborator Author

shibupanda commented Nov 29, 2019

Hi @truongsinh I took the pull from kotlin-finder branch as I don't want to invest time to build whole using java. If there is any issue with the branch I may start creating the java binding for finder.

I think you have merged it into master. But to start I think we need to buld jar and there I am facing issue.

@truongsinh
Copy link
Collaborator

I think you have merged it into master. But to start I think we need to buld jar and there I am facing issue.

Yes it was merged to master. Were you able to run the Java example provided?

@shibupanda
Copy link
Collaborator Author

shibupanda commented Nov 29, 2019

No @truongsinh I am not as the dependency is not in maven so I am getting dependecy error in pom.
That's why I am trying to build the jar. When I tried to build jar that time I got above mentioned error.

@shibupanda
Copy link
Collaborator Author

Hi @truongsinh any update on the above.
Thanks

@ahashmi24
Copy link

Hi @truongsinh
I have tried to execute your java example code after installing appium-flutter-driver as mentioned in link and setting up the maven dependencies by keeping 'repository' folder in my local machine. However, I am getting issue "UnhandledPromiseRejectionWarning: Error: "ext.flutter.driver" is not found in "extensionRPCs"" after launching the android app on real device.

You can see the complete log below:
https://gist.github.com/ahashmi24/1d77c19f6dfba4648f8202a169c50bda

@shibupanda
Copy link
Collaborator Author

@ahashmi24 where you got repository folder. Can you help me with the link. As I am trying to build jar but stuck due to above error.

@ahashmi24
Copy link

@shibupanda
You can download it from link and take reference from pom.xml

Happy Testing!!!

@shibupanda
Copy link
Collaborator Author

Hi @ahashmi24 could you please create a new thread for the issue you reported as it seems the driver is not configure properly. Expect you to create a new thread so that we can track the issues easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants