رفتن به مطلب
  • 0

ایمپورت پروژه اندروید


1212

سوال

سلام و عرض ادب خدمت اساتید و عزیزان

بنده وقتی تو اندروید استودیو هر پروژه ای که میسازم بدون مشکل اجرا میشه

ولی زمانیکه یه پروژه ایمپورت میکنم مثلا همین پروژه رمزنگاری متن    اــــــــــــــــــن لینـــــــــــــــــــــــــــــــــــــــــنک

اصلا اجرا نمیشه اکثر نسخه های گردل رو دان کردم

ببنید

مقدور باشه اساتید راهنمایی کنن

Screenshot (2).png

Screenshot (3).png

لینک ارسال
به اشتراک گذاری در سایت های دیگر

2 پاسخ به این سوال تاکنون داده شده است

ارسال‌های توصیه شده

سلام

اندروید استودیوتون روی حالت Offline  که نیست ؟

فندق شکنتون رو روشن کنید و اندروید استودیو رو دوباره Sync  کنید.

لینک ارسال
به اشتراک گذاری در سایت های دیگر

نه والا خودم تو سی شارپ یه برنامه طراحی کردم نیاز به ف**شکن نیست اینـــــــــــــــــجا(البته به کمک سرویس شکن)

و تو نصب و راه اندازی از همون استفاده کردم

ولی تو بیلدهای خودم از هر ورژنی مشکلی ندارم

اما تاکنون حتی یه نمونه سورس رو نتونستم باز کنم

حتی ساده ترین سورس

مثلا سورس شمارنده مهندس شایــــــــــــــان هم نتونستم باز کنم یعنی باز که میکنه تو بیلد و سینک همون خطا رو میده

حتی امروز خطایی که نمایش داد این بود

update to 3.4.2 version

 رفتم اندروید استودیو 3.4.2 رو دانلود کردم و بازهم همون خطارو میده

 

لاگ خطاها رو می خاستم  پیوست میکنم متسفانه امکان پلو تکست نیست به ناچار اینجا قرار میدم

2019-07-18 16:00:45,260 [e-1343-b01]   INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: SYNC_FINISHED 
2019-07-18 16:00:45,261 [e-1343-b01]   INFO - a.gradle.util.BatchUpdatesUtil - Finishing batch update for project: Project 'G:\MY-Download-98-3\HashText\HashText' HashText 
2019-07-18 16:00:45,345 [ thread 12]   INFO - roid.tools.ndk.GradleWorkspace - Updating model took 0.021s 
2019-07-18 16:00:45,881 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 4 ms 
2019-07-18 16:00:45,883 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files 
2019-07-18 16:00:45,884 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 2 ms 
2019-07-18 16:00:45,885 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Loading Header Maps finished in 1 ms 
2019-07-18 16:00:45,886 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Loading Module Maps finished in 1 ms 
2019-07-18 16:00:45,887 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Saving Module Maps finished in 1 ms 
2019-07-18 16:00:45,887 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files) 
2019-07-18 16:00:45,887 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Building symbols for 0 source files 
2019-07-18 16:00:45,889 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Building symbols for 0 unused headers 
2019-07-18 16:00:45,891 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 4 ms 
2019-07-18 16:00:45,896 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0) 
2019-07-18 16:00:45,896 [ thread 15]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 0 ms 
2019-07-18 16:01:59,932 [d thread 2]   WARN - dea.sdk.SystemInfoStatsMonitor - CpuInfoFlags.fromExitCode(): unknown flag values '0x80' 
2019-07-18 17:46:52,516 [e-1343-b01]   INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: SYNC_TASK_CREATED 
2019-07-18 17:46:52,520 [e-1343-b01]   INFO - e.project.sync.GradleSyncState - Started sync with Gradle for project 'HashText'. 
2019-07-18 17:46:52,526 [e-1343-b01]   INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: SYNC_STARTED 
2019-07-18 17:46:52,526 [e-1343-b01]   INFO - a.gradle.util.BatchUpdatesUtil - Starting batch update for project: Project 'G:\MY-Download-98-3\HashText\HashText' HashText 
2019-07-18 17:46:52,556 [ thread 40]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Android/Android Studio/jre 
2019-07-18 17:46:52,559 [ thread 40]   INFO - oject.common.GradleInitScripts - init script file sync.java.lib contents "initscript {\n    dependencies {\n        classpath files(['C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\android\\\\lib\\\\sdk-tools.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\android\\\\lib\\\\sdk-tools.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\lib\\\\kotlin-stdlib.jar'])\n    }\n}\nallprojects {\n    apply plugin: com.android.java.model.builder.JavaLibraryPlugin\n}\n" 
2019-07-18 17:46:52,563 [ thread 40]   INFO - oject.common.GradleInitScripts - init script file sync.ng.build.script.classpath contents "import javax.inject.Inject\nimport org.gradle.tooling.provider.model.ToolingModelBuilderRegistry\nimport org.gradle.tooling.provider.model.ToolingModelBuilder\ninitscript {\n  dependencies {\n      classpath files(['C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\gradle\\\\lib\\\\gradle-tooling-extension-impl.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\gradle\\\\lib\\\\gradle-tooling-extension-api.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\gradle\\\\lib\\\\gradle-api-impldep-4.10.jar'])\n  }\n}\nallprojects {\n  apply plugin: BuildScriptClasspathModelBuilderPlugin\n}\nclass BuildScriptClasspathModelBuilder implements ToolingModelBuilder {\n  public org.jetbrains.plugins.gradle.tooling.builder.ModelBuildScriptClasspathBuilderImpl builder;\n  public BuildScriptClasspathModelBuilder() {\n    builder = new org.jetbrains.plugins.gradle.tooling.builder.ModelBuildScriptClasspathBuilderImpl();\n  }\n  public boolean canBuild(String modelName) {\n    return builder.canBuild(modelName);\n  }\n  public Object buildAll(String modelName, Project project) {\n    return builder.buildAll(modelName, project);\n  }\n}\nclass BuildScriptClasspathModelBuilderPlugin implements Plugin<Project>{ \n  ToolingModelBuilderRegistry registry\n  @Inject BuildScriptClasspathModelBuilderPlugin(ToolingModelBuilderRegistry registry) {\n    this.registry = registry  }\n\n\n  void apply(Project project) {\n    registry.register(new BuildScriptClasspathModelBuilder())\n  }\n}" 
2019-07-18 17:46:52,573 [ thread 40]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --init-script C:\Users\Salam\AppData\Local\Temp\sync.java.lib1.gradle --init-script C:\Users\Salam\AppData\Local\Temp\sync.ng.build.script.classpath1.gradle -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 -Pandroid.injected.studio.version=3.4.2.0 
2019-07-18 17:46:52,580 [ thread 40]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --init-script C:\Users\Salam\AppData\Local\Temp\sync.java.lib1.gradle --init-script C:\Users\Salam\AppData\Local\Temp\sync.ng.build.script.classpath1.gradle -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 -Pandroid.injected.studio.version=3.4.2.0 
2019-07-18 17:46:56,463 [ thread 43]   INFO - e.project.sync.GradleSyncState - Started setup of project 'HashText'. 
2019-07-18 17:46:56,463 [ thread 40]   INFO - e.project.sync.GradleSyncState - Finished source generation of project 'HashText'. 
2019-07-18 17:46:56,466 [e-1343-b01]   INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: SETUP_STARTED 
2019-07-18 17:46:56,489 [ thread 43]   INFO - e.project.sync.GradleSyncState - Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model. (3 s 969 ms) 
2019-07-18 17:46:56,490 [ thread 43]   WARN - ject.sync.ng.SyncResultHandler - Gradle sync failed 
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
	at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
	at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:360)
	at com.sun.proxy.$Proxy175.getApplicationIdSuffix(Unknown Source)
	at com.android.ide.common.gradle.model.IdeBaseConfig.<init>(IdeBaseConfig.java:56)
	at com.android.ide.common.gradle.model.IdeProductFlavor.<init>(IdeProductFlavor.java:51)
	at com.android.ide.common.gradle.model.IdeProductFlavorContainer.lambda$new$0(IdeProductFlavorContainer.java:42)
	at com.android.ide.common.gradle.model.ModelCache.lambda$computeIfAbsent$0(ModelCache.java:29)
	at java.util.HashMap.computeIfAbsent(HashMap.java:1126)
	at com.android.ide.common.gradle.model.ModelCache.computeIfAbsent(ModelCache.java:29)
	at com.android.ide.common.gradle.model.IdeProductFlavorContainer.<init>(IdeProductFlavorContainer.java:40)
	at com.android.ide.common.gradle.model.IdeAndroidProjectImpl.lambda$new$0(IdeAndroidProjectImpl.java:86)
	at com.android.ide.common.gradle.model.ModelCache.lambda$computeIfAbsent$0(ModelCache.java:29)
	at java.util.HashMap.computeIfAbsent(HashMap.java:1126)
	at com.android.ide.common.gradle.model.ModelCache.computeIfAbsent(ModelCache.java:29)
	at com.android.ide.common.gradle.model.IdeAndroidProjectImpl.<init>(IdeAndroidProjectImpl.java:84)
	at com.android.ide.common.gradle.model.IdeAndroidProjectImpl.<init>(IdeAndroidProjectImpl.java:68)
	at com.android.tools.idea.gradle.project.model.AndroidModuleModel.<init>(AndroidModuleModel.java:167)
	at com.android.tools.idea.gradle.project.sync.ng.AndroidModelFactory.createAndroidModel(AndroidModelFactory.java:86)
	at com.android.tools.idea.gradle.project.sync.ng.AndroidModelFactory.createAndroidModel(AndroidModelFactory.java:62)
	at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModelsSetup.createModuleModel(SyncProjectModelsSetup.java:254)
	at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModelsSetup.createAndSetUpModules(SyncProjectModelsSetup.java:202)
	at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModelsSetup.setUpModules(SyncProjectModelsSetup.java:141)
	at com.android.tools.idea.gradle.project.sync.ng.ProjectSetup$ProjectSetupImpl.setUpProject(ProjectSetup.java:69)
	at com.android.tools.idea.gradle.project.sync.ng.SyncResultHandler.setUpProject(SyncResultHandler.java:136)
	at com.android.tools.idea.gradle.project.sync.ng.SyncResultHandler.onSyncFinished(SyncResultHandler.java:88)
	at com.android.tools.idea.gradle.project.sync.ng.SyncResultHandler.lambda$onCompoundSyncModels$6(SyncResultHandler.java:268)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2019-07-18 17:46:56,494 [e-1343-b01]   INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: SYNC_FINISHED 
2019-07-18 17:46:56,494 [e-1343-b01]   INFO - a.gradle.util.BatchUpdatesUtil - Finishing batch update for project: Project 'G:\MY-Download-98-3\HashText\HashText' HashText 
2019-07-18 17:46:56,569 [ thread 43]   INFO - roid.tools.ndk.GradleWorkspace - Updating model took 0.001s 
2019-07-18 17:46:56,689 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 59 ms 
2019-07-18 17:46:56,690 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files 
2019-07-18 17:46:56,691 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 2 ms 
2019-07-18 17:46:56,691 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Loading Header Maps finished in 0 ms 
2019-07-18 17:46:56,693 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Loading Module Maps finished in 2 ms 
2019-07-18 17:46:56,694 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Saving Module Maps finished in 1 ms 
2019-07-18 17:46:56,694 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files) 
2019-07-18 17:46:56,694 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Building symbols for 0 source files 
2019-07-18 17:46:56,695 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Building symbols for 0 unused headers 
2019-07-18 17:46:56,696 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 2 ms 
2019-07-18 17:46:56,696 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0) 
2019-07-18 17:46:56,697 [ thread 41]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 1 ms 
2019-07-18 17:47:19,984 [e-1343-b01]   INFO - ide.actions.ShowFilePathAction - 

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...