오류 한번만 봐주십시오..!
조회수 1370회
안드로이드 스튜디오에서 java Library 모듈 만들었구요 Compile 시에는 문제가 없는데 실행 시에 이렇게 문제가 발생하네요;; 구글링 몇일째인데 아직도 해결못했어요 ㅠㅠ 구글링에서 얻은 결과로는 런타임시에 jar파일을 찾지못해서 라는데;; 들어도 모르겠어요
-------------android gradle---------------------
apply plugin: 'java-library'
repositories { maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } mavenCentral() }
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
compile 'org.igniterealtime.smack:smack-java7:4.2.3'
compile 'org.igniterealtime.smack:smack-core:4.2.3'
compile 'org.igniterealtime.smack:smack-tcp:4.2.3'
compile 'org.igniterealtime.smack:smack-im:4.2.3'
compile 'org.igniterealtime.smack:smack-extensions:4.2.3'
compile 'xpp3:xpp3:1.1.3.3'
}
-------------cmd 창에서 실행한 결과입니다.----------------
C:\Users\T\AndroidStudioProjects\MyApplicationnn\Server\src\main\java\com\example\ Server>javac EntryPoint.java EntryPoint.java:3: error: package org.jivesoftware.smack does not exist import org.jivesoftware.smack.SmackException; ^ EntryPoint.java:4: error: package org.jivesoftware.smack does not exist import org.jivesoftware.smack.XMPPException;
^
EntryPoint.java:19: error: cannot find symbol public static void main(String[] args) throws IOException, SmackException{
^
symbol: class SmackException location: class EntryPoint EntryPoint.java:24: error: cannot find symbol final Client ccsClient = Client.prepareCcsClient(fcmProjectSenderId, fcm ServerKey, true); // true for debugging
^
symbol: class Client location: class EntryPoint EntryPoint.java:24: error: cannot find symbol final Client ccsClient = Client.prepareCcsClient(fcmProjectSenderId, fcm ServerKey, true); // true for debugging
^
symbol: variable Client location: class EntryPoint EntryPoint.java:28: error: cannot find symbol } catch (XMPPException | InterruptedException e) {
^
symbol: class XMPPException location: class EntryPoint EntryPoint.java:33: error: cannot find symbol final String messageId = Util.getUniqueMessageId();
^
symbol: variable Util location: class EntryPoint EntryPoint.java:35: error: cannot find symbol dataPayload.put(Util.PAYLOAD_ATTRIBUTE_MESSAGE, "This is the simple samp le message");
^
symbol: variable Util location: class EntryPoint EntryPoint.java:36: error: cannot find symbol final CcsOutMessage message = new CcsOutMessage(toRegId, messageId, data Payload);
^
symbol: class CcsOutMessage location: class EntryPoint EntryPoint.java:36: error: cannot find symbol final CcsOutMessage message = new CcsOutMessage(toRegId, messageId, data Payload);
^
symbol: class CcsOutMessage location: class EntryPoint EntryPoint.java:37: error: cannot find symbol final String jsonRequest = MessageHelper.createJsonOutMessage(message);
^
symbol: variable MessageHelper location: class EntryPoint 11 errors
C:\Users\T\AndroidStudioProjects\MyApplicationnn\Server\src\main\java\com\example\ Server>
답변 부탁드리겠습니다...! 제발...
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력