Use javah to generate a. h file and solve the problem that the android. app and Activity cannot be accessed.

Source: Internet
Author: User

My classmates run javah com.cn. ndk22.Ndk22. Activity in the ndk22/bin/classes project. The. h file appears.

 

 

 

I am in the bin/classes directory and cannot access it,

: Error: unable to access android. app. Activity

Android. app. Activity not found

As shown in

 

 

 

 

 

 

So I went to the ndk/src directory in cmd and ran javah com. heima. ndk. ndkActivity. If it was successful, it would be successful... I don't know why.

 

 

 

 

 

 

Conclusion: when using javah to generate a. h file,

If javah com. heima. ndk. ndkActivity cannot be accessed in D: \ Android \ project \ ndk \ bin \ classes and the class file cannot be found

 

Run javah com. heima. ndk. ndkActivity in D: \ Android \ project \ ndk \ src.

I don't know why. I can use it anyway...

 

Reproduced in: http://201202212729.iteye.com/blog/1625779

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.