• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to open and run existing project

Hey @aliyesmi, I've moved your thread over here to our Application Development area for you.

That .zip file does indeed look like an importable Android project, but I usually use Eclipse and I'm not at my development machine so that I could try importing it into Android Studio.

But you'll be wanting to import it vs. opening it, so hopefully / perhaps that's the issue?

Cheers!
 
I tried to import it but I get the following errors :
"Failed to sync Gradle project 'provision_ap_app'
cause: failed to find target with hash string 'android-17 in C:\Users\user1\AppData\Loca\Android\sdk1"

and also
"

Ignored Files:
--------------
The following files were *not* copied into the new Gradle project; you
should evaluate whether these are still needed in your project and if
so manually move them:

* ic_launcher-web.png
* proguard-project.txt
 
I zipped bunch of files related to gradle including the file you wanted.
actually the complete error I am getting is
"
Error:A problem occurred configuring project ':app'.
> failed to find target with hash string 'android-17' in: C:\Users\user1\AppData\Local\Android\sdk1
<a href="openAndroidSdkManager">Open Android SDK Manager</a>"
 

Attachments

I checked and the SDK path is set properly . please see the attached files
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    82.5 KB · Views: 118
  • Capture.JPG
    Capture.JPG
    161.9 KB · Views: 280
the SDK information is missing from project module though . .don't know if its normal or not. but I don't know what to f ill there as the drop down list show nothing .
 

Attachments

  • capture3.jpg
    capture3.jpg
    68.4 KB · Views: 105
after downloading bunch of updates by android sdk manager I can now see options in the module settings which I set as shown in picture but I still get build errors as shown in the picture.
can you please try to import it and see if you can?
also I have a feeling this could be a problem in the project.properties file :
is this target version correct?

# Project target.
target=android-17
 

Attachments

  • Capture5.JPG
    Capture5.JPG
    163.7 KB · Views: 122
  • Capture4.JPG
    Capture4.JPG
    71.8 KB · Views: 160
Last edited:
I have good news , the build succeeded. The problem was the wrong target in the project.properties file I set it to android-23 and it worked .
thanks for your help again . I am totally a newbie to Android programming and eager to learn
 
thanks
I think this app is using the TCP/IP socket programming , is there any tutorial or guide available for this kind of android programming?
 
Back
Top Bottom