{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/android-ndk/issues/513","repository_url":"https://api.github.com/repos/googlesamples/android-ndk","labels_url":"https://api.github.com/repos/googlesamples/android-ndk/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-ndk/issues/513/comments","events_url":"https://api.github.com/repos/googlesamples/android-ndk/issues/513/events","html_url":"https://github.com/googlesamples/android-ndk/issues/513","id":313035402,"number":513,"title":"javac HelloJni.java error","user":{"login":"XiaZiXi","id":24664162,"avatar_url":"https://avatars3.githubusercontent.com/u/24664162?v=4","gravatar_id":"","url":"https://api.github.com/users/XiaZiXi","html_url":"https://github.com/XiaZiXi","followers_url":"https://api.github.com/users/XiaZiXi/followers","following_url":"https://api.github.com/users/XiaZiXi/following{/other_user}","gists_url":"https://api.github.com/users/XiaZiXi/gists{/gist_id}","starred_url":"https://api.github.com/users/XiaZiXi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XiaZiXi/subscriptions","organizations_url":"https://api.github.com/users/XiaZiXi/orgs","repos_url":"https://api.github.com/users/XiaZiXi/repos","events_url":"https://api.github.com/users/XiaZiXi/events{/privacy}","received_events_url":"https://api.github.com/users/XiaZiXi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-10T18:16:53Z","updated_at":"2018-04-12T02:12:30Z","closed_at":null,"author_association":"NONE","body":"i changed the directory to hello-jni,fo get hello-jni.h，i found the directory named hellojni,and i exec the command \"javac HelloJni.java\",and i get lots of errors \r\nPicked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8\r\nHelloJni.java:18: 错误: 程序包android.support.v7.app不存在\r\nimport android.support.v7.app.AppCompatActivity;\r\n                             ^\r\nHelloJni.java:19: 错误: 程序包android.os不存在\r\nimport android.os.Bundle;\r\n                 ^\r\nHelloJni.java:20: 错误: 程序包android.widget不存在\r\nimport android.widget.TextView;\r\n                     ^\r\nHelloJni.java:22: 错误: 找不到符号\r\npublic class HelloJni extends AppCompatActivity {\r\n                              ^\r\n  符号: 类 AppCompatActivity\r\nHelloJni.java:25: 错误: 找不到符号\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n                            ^\r\n  符号:   类 Bundle\r\n  位置: 类 HelloJni\r\nHelloJni.java:24: 错误: 方法不会覆盖或实现超类型的方法\r\n    @Override\r\n    ^\r\nHelloJni.java:26: 错误: 找不到符号\r\n        super.onCreate(savedInstanceState);\r\n        ^\r\n  符号:   变量 super\r\n  位置: 类 HelloJni\r\nHelloJni.java:31: 错误: 程序包R不存在\r\n        setContentView(R.layout.activity_hello_jni);\r\n                        ^\r\nHelloJni.java:32: 错误: 找不到符号\r\n        TextView tv = (TextView)findViewById(R.id.hello_textview);\r\n        ^\r\n  符号:   类 TextView\r\n  位置: 类 HelloJni\r\nHelloJni.java:32: 错误: 找不到符号\r\n        TextView tv = (TextView)findViewById(R.id.hello_textview);\r\n                       ^\r\n  符号:   类 TextView\r\n  位置: 类 HelloJni\r\nHelloJni.java:32: 错误: 程序包R不存在\r\n        TextView tv = (TextView)findViewById(R.id.hello_textview);\r\n                                              ^\r\n11 个错误\r\ni can not understand why,what do i should do?i'm sorry about my english,thank you!!!"},"comment":{"url":"https://api.github.com/repos/googlesamples/android-ndk/issues/comments/380652417","html_url":"https://github.com/googlesamples/android-ndk/issues/513#issuecomment-380652417","issue_url":"https://api.github.com/repos/googlesamples/android-ndk/issues/513","id":380652417,"user":{"login":"XiaZiXi","id":24664162,"avatar_url":"https://avatars3.githubusercontent.com/u/24664162?v=4","gravatar_id":"","url":"https://api.github.com/users/XiaZiXi","html_url":"https://github.com/XiaZiXi","followers_url":"https://api.github.com/users/XiaZiXi/followers","following_url":"https://api.github.com/users/XiaZiXi/following{/other_user}","gists_url":"https://api.github.com/users/XiaZiXi/gists{/gist_id}","starred_url":"https://api.github.com/users/XiaZiXi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XiaZiXi/subscriptions","organizations_url":"https://api.github.com/users/XiaZiXi/orgs","repos_url":"https://api.github.com/users/XiaZiXi/repos","events_url":"https://api.github.com/users/XiaZiXi/events{/privacy}","received_events_url":"https://api.github.com/users/XiaZiXi/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T02:12:30Z","updated_at":"2018-04-12T02:12:30Z","author_association":"NONE","body":"I made a so low-level mistake,now i generate the dynamic libraries!I just started learning the android and ndk development,before i just learn some c++,i  know the portability of the IDE tool,so much so that I want to find out the probably process behind.After this time,i will use Android Studio.Thanks again!"}}
{"actor":{"display_login":"XiaZiXi"}}