انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


ارائه ۲۴٫۱۰ اوبونتو منتشر شد 🎉

نویسنده موضوع: مشکل ساخت پروژه در اندروید استودیو (حل شد)  (دفعات بازدید: 1570 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین mahdi0047

  • Newbie
  • *
  • ارسال: 2
  • جنسیت : پسر
با سلام
جدیدا از ویندوز به اوبونتو مهاجرت کردم و اطلاعات زیادی راجب اوبونتو ندارم. ;D
وقتی میخوام توی اندروید استدیو پروژه بسازم ساخته نمیشه. :(
اولین صفحه که باز میشه دکمه next کار نمیکنه و پیامی که ترمینال میده اینه:
[  73216]  ERROR - llij.ide.plugins.PluginManager - java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.Gson.fromJson(Gson.java:873)
at com.google.gson.Gson.fromJson(Gson.java:826)
at com.android.sdklib.repository.targets.PlatformTarget.getLibsFromJson(PlatformTarget.java:179)
at com.android.sdklib.repository.targets.PlatformTarget.<init>(PlatformTarget.java:124)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargetMap(AndroidTargetManager.java:95)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargets(AndroidTargetManager.java:81)
at com.android.tools.idea.npw.FormFactorApiComboBox.getCompilationTargets(FormFactorApiComboBox.java:336)
at com.android.tools.idea.npw.FormFactorApiComboBox.loadTargets(FormFactorApiComboBox.java:287)
at com.android.tools.idea.npw.FormFactorApiComboBox.init(FormFactorApiComboBox.java:107)
at com.android.tools.idea.npw.FormFactorSdkControls.init(FormFactorSdkControls.java:161)
at com.android.tools.idea.npw.ConfigureFormFactorStep.init(ConfigureFormFactorStep.java:75)
at com.android.tools.idea.wizard.dynamic.DynamicWizardStep.onEnterStep(DynamicWizardStep.java:165)
at com.android.tools.idea.npw.ConfigureFormFactorStep.onEnterStep(ConfigureFormFactorStep.java:130)
at com.android.tools.idea.wizard.dynamic.DynamicWizardPath.next(DynamicWizardPath.java:311)
at com.android.tools.idea.wizard.dynamic.DynamicWizardPath.next(DynamicWizardPath.java:58)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.showNextStep(DynamicWizard.java:346)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.doNextAction(DynamicWizard.java:336)
at com.android.tools.idea.wizard.dynamic.DialogWrapperHost$NextAction.doAction(DialogWrapperHost.java:343)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1811)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:792)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:465)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1661)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1610)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.show(DynamicWizard.java:497)
at com.android.tools.idea.actions.AndroidNewProjectAction.actionPerformed(AndroidNewProjectAction.java:64)
at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:64)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:148)
at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:77)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:310)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:351)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.Gson.fromJson(Gson.java:861)
... 104 more
[  73220]  ERROR - llij.ide.plugins.PluginManager - Android Studio 2.2.3  Build #AI-145.3537739
[  73220]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_76-release
[  73220]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
[  73220]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
[  73220]  ERROR - llij.ide.plugins.PluginManager - OS: Linux
[  73220]  ERROR - llij.ide.plugins.PluginManager - Last Action: 
^C[  88169]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 130
اندروید sdk رو هم با سرور گوگل آپدیت کردم ولی مشکل سر جاشه.
ممنون میشم اگه کمکی کنید.
« آخرین ویرایش: 23 اسفند 1395، 03:59 ب‌ظ توسط mahdi0047 »

آفلاین مصطفی عفافی

  • Full Member
  • *
  • ارسال: 118
  • جنسیت : پسر
  • ;)
پاسخ : مشکل ساخت پروژه در اندروید استودیو
« پاسخ #1 : 21 اسفند 1395، 06:00 ب‌ظ »
سلام
چک کنید ببینید این گزینه ها فعال هستند یا نه

Mostafa Efafi

آفلاین sayres

  • High Hero Member
  • *
  • ارسال: 1096
  • جنسیت : پسر
    • دست نوشته های من
پاسخ : مشکل ساخت پروژه در اندروید استودیو
« پاسخ #2 : 21 اسفند 1395، 06:58 ب‌ظ »
با سلام
جدیدا از ویندوز به اوبونتو مهاجرت کردم و اطلاعات زیادی راجب اوبونتو ندارم. ;D
وقتی میخوام توی اندروید استدیو پروژه بسازم ساخته نمیشه. :(
اولین صفحه که باز میشه دکمه next کار نمیکنه و پیامی که ترمینال میده اینه:
[  73216]  ERROR - llij.ide.plugins.PluginManager - java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.Gson.fromJson(Gson.java:873)
at com.google.gson.Gson.fromJson(Gson.java:826)
at com.android.sdklib.repository.targets.PlatformTarget.getLibsFromJson(PlatformTarget.java:179)
at com.android.sdklib.repository.targets.PlatformTarget.<init>(PlatformTarget.java:124)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargetMap(AndroidTargetManager.java:95)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargets(AndroidTargetManager.java:81)
at com.android.tools.idea.npw.FormFactorApiComboBox.getCompilationTargets(FormFactorApiComboBox.java:336)
at com.android.tools.idea.npw.FormFactorApiComboBox.loadTargets(FormFactorApiComboBox.java:287)
at com.android.tools.idea.npw.FormFactorApiComboBox.init(FormFactorApiComboBox.java:107)
at com.android.tools.idea.npw.FormFactorSdkControls.init(FormFactorSdkControls.java:161)
at com.android.tools.idea.npw.ConfigureFormFactorStep.init(ConfigureFormFactorStep.java:75)
at com.android.tools.idea.wizard.dynamic.DynamicWizardStep.onEnterStep(DynamicWizardStep.java:165)
at com.android.tools.idea.npw.ConfigureFormFactorStep.onEnterStep(ConfigureFormFactorStep.java:130)
at com.android.tools.idea.wizard.dynamic.DynamicWizardPath.next(DynamicWizardPath.java:311)
at com.android.tools.idea.wizard.dynamic.DynamicWizardPath.next(DynamicWizardPath.java:58)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.showNextStep(DynamicWizard.java:346)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.doNextAction(DynamicWizard.java:336)
at com.android.tools.idea.wizard.dynamic.DialogWrapperHost$NextAction.doAction(DialogWrapperHost.java:343)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1811)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:792)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:465)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1661)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1610)
at com.android.tools.idea.wizard.dynamic.DynamicWizard.show(DynamicWizard.java:497)
at com.android.tools.idea.actions.AndroidNewProjectAction.actionPerformed(AndroidNewProjectAction.java:64)
at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:64)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:148)
at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:77)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:310)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:351)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.Gson.fromJson(Gson.java:861)
... 104 more
[  73220]  ERROR - llij.ide.plugins.PluginManager - Android Studio 2.2.3  Build #AI-145.3537739
[  73220]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_76-release
[  73220]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
[  73220]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
[  73220]  ERROR - llij.ide.plugins.PluginManager - OS: Linux
[  73220]  ERROR - llij.ide.plugins.PluginManager - Last Action: 
^C[  88169]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 130
اندروید sdk رو هم با سرور گوگل آپدیت کردم ولی مشکل سر جاشه.
ممنون میشم اگه کمکی کنید.

لطفا تنظیمات گریدل را هم بگذارید؟
شما ابتدا کتابخانه GSON را از گریدل حذف کنید و یک پروژه جدید بدون کتابخانه بسازید و تست بگیرید ببینید که باز مشکلی هست یا نه؟
« آخرین ویرایش: 21 اسفند 1395، 07:01 ب‌ظ توسط sayres »

آفلاین mahdi0047

  • Newbie
  • *
  • ارسال: 2
  • جنسیت : پسر
با تشکر حل شد.